Class: MorphTarget

pc.MorphTarget

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.

Constructor

(private) new MorphTarget(options, deltaPositions, deltaNormalsopt, deltaTangentsopt, nameopt, aabbopt)

Parameters:
Name Type Attributes Description
options Object Object for passing optional arguments.
deltaPositions Array.<Number> An array of 3-dimensional vertex position offsets.
deltaNormals Array.<Number> <optional>
An array of 3-dimensional vertex normal offsets.
deltaTangents Array.<Number> <optional>
An array of 4-dimensional vertex normal tangents.
options.indices Array.<Number> <optional>
A morph target doesn't have to contain a full copy of the original mesh with added deformations. Instead, only deformed vertices can be stored. This array contains indices to the original mesh's vertices and must be of the same size as other arrays.
name String <optional>
Name
aabb pc.BoundingBox <optional>
Bounding box. Will be automatically generated, if undefined.
Source: