Package com.aspose.threed
Class MorphTargetDeformer
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Deformer
-
- com.aspose.threed.MorphTargetDeformer
-
- All Implemented Interfaces:
INamedObject
public class MorphTargetDeformer extends Deformer
MorphTargetDeformer provides per-vertex animation. MorphTargetDeformer organize all targets viaMorphTargetChannel
, 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_animation
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description MorphTargetDeformer()
Initializes a new instance of theMorphTargetDeformer
class.MorphTargetDeformer(java.lang.String name)
Initializes a new instance of theMorphTargetDeformer
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 deformervoid
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.-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
MorphTargetDeformer
public MorphTargetDeformer(java.lang.String name)
Initializes a new instance of theMorphTargetDeformer
class.- Parameters:
name
- Name.
-
MorphTargetDeformer
public MorphTargetDeformer()
Initializes a new instance of theMorphTargetDeformer
class.
-
-
Method Detail
-
get
public double get(Shape target)
Gets the weight for given geometry, this is a short-handed way to modify weight for target without accessing channel.- Parameters:
target
- Target geometry- Returns:
- Weight
-
set
public 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.- Parameters:
target
- Target geometryvalue
- New value
-
getChannels
public java.util.List<MorphTargetChannel> getChannels()
Gets all channels contained in this deformer
-
-