shout3d.core
Class TranslationArrayDefChannel
java.lang.Object
|
+--shout3d.core.Node
|
+--shout3d.core.DeformationChannel
|
+--shout3d.core.TranslationArrayDefChannel
- public class TranslationArrayDefChannel
- extends DeformationChannel
A TranslationArrayDefChannel
A DeformationChannel that translates points based on an array of translations, with a
unique translation for each point to be deformed.
When invoked, deform method operates on the array of points given as follows:
The modifiedCoordIndex specifies which points in the array are to be deformed.
If modifiedCoordIndex is null or empty, then all points will be deformed.
The translations field must contain a 3-vector for each point to be deformed.
If there are two few translations, the deform() method will return without
making any changes.
Each point to be deformed will be translated by an amount equal to the relevant
translation for that point scaled by the value of the weight field.
Method Summary |
void |
deform(float[] points)
|
Methods inherited from class shout3d.core.Node |
cleanUp,
getDEFName,
getField,
getFieldByIndex,
getFieldName,
getNumFields,
getTypeName,
getViewer,
isOfType,
setDEFName,
setViewer |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
weight
public final FloatField weight
modifiedCoordIndex
public final IntArrayField modifiedCoordIndex
translations
public final FloatArrayField translations
TranslationArrayDefChannel
public TranslationArrayDefChannel()
deform
public void deform(float[] points)
- Overrides:
- deform in class DeformationChannel