public class MorphTargetDeformer extends Deformer
MorphTargetChannel
, each channel can organize multiple targets.
A common use of morph target deformer is to apply facial expression to a character.
More details can be found at https://en.wikipedia.org/wiki/Morph_target_animationname, properties
Constructor and Description |
---|
MorphTargetDeformer()
Initializes a new instance of the
MorphTargetDeformer class. |
MorphTargetDeformer(java.lang.String name)
Initializes a new instance of the
MorphTargetDeformer class. |
Modifier and Type | Method and Description |
---|---|
double |
get(Shape target)
Gets the weight for given geometry, this is a short-handed way to modify weight for target without accessing channel.
|
java.util.List<MorphTargetChannel> |
getChannels()
Gets all channels contained in this deformer
|
void |
set(Shape target,
double value)
Sets the weight for given geometry, this is a short-handed way to modify weight for target without accessing channel.
|
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public MorphTargetDeformer(java.lang.String name)
MorphTargetDeformer
class.name
- Name.public MorphTargetDeformer()
MorphTargetDeformer
class.public double get(Shape target)
target
- Target geometrypublic void set(Shape target, double value)
target
- Target geometryvalue
- New valuepublic java.util.List<MorphTargetChannel> getChannels()