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_animationConstructor and Description |
---|
MorphTargetDeformer()
Initializes a new instance of the
MorphTargetDeformer class. |
MorphTargetDeformer(String name)
Initializes a new instance of the
MorphTargetDeformer class. |
Modifier and Type | Method and Description |
---|---|
double |
get(Geometry target)
Gets the weight for given geometry, this is a short-handed way to modify weight for target without accessing channel.
|
List<MorphTargetChannel> |
getChannels()
Gets all channels contained in this deformer
|
void |
set(Geometry 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, getProperty, removeProperty, removeProperty, setName, setProperty
public MorphTargetDeformer(String name)
MorphTargetDeformer
class.name
- Name.public MorphTargetDeformer()
MorphTargetDeformer
class.public double get(Geometry target)
target
- Target geometrypublic void set(Geometry target, double value)
target
- Target geometryvalue
- New valuepublic List<MorphTargetChannel> getChannels()
Copyright © 2018. All rights reserved.