A Morph Target (also known as Blend Shape) contains deformation data to apply to existing mesh. Multiple morph targets can be blended together on a mesh. This is useful for effects that are hard to achieve with conventional animation and skinning.
new MorphTarget(options: {
aabb: BoundingBox;
defaultWeight: number;
deltaNormals: ArrayBuffer;
deltaPositions: ArrayBuffer;
name: string;
preserveData: boolean;
}, ...args: any): MorphTarget
Create a new MorphTarget instance.
Object for passing optional arguments.
Bounding box. Will be automatically generated, if undefined.
number
Default blend weight to use for this morph target.
An array of 3-dimensional vertex normal offsets.
An array of 3-dimensional vertex position offsets.
string
Name.
boolean
When true, the morph target keeps its data passed using the options, allowing the clone operation.
...any
used: boolean = false
A used flag. A morph target can be used / owned by the Morph class only one time.
get defaultWeight(): number
Gets the default weight of the morph target.
number
get name(): string
Gets the name of the morph target.
string
clone(): MorphTarget
Returns an identical copy of the specified morph target. This can only be used if the morph target was created with options.preserveData set to true.
A morph target instance containing the result of the cloning.