Skip to content

Documentation / @imvu/cal3d / MorphTarget

Class: MorphTarget ​

Defined in: packages/cal3d/src/Mesh.ts:70

A named blend shape (morph) of a submesh; morph animations drive its weight by name.

Constructors ​

Constructor ​

ts
new MorphTarget(name, blendVertices?): MorphTarget;

Defined in: packages/cal3d/src/Mesh.ts:71

Parameters ​

ParameterTypeDefault valueDescription
namestringundefined-
blendVertices?BlendVertex[][]Displaced vertices, in ascending vertexId order; vertices not listed don't move.

Returns ​

MorphTarget

Properties ​

blendVertices ​

ts
readonly blendVertices: BlendVertex[] = [];

Defined in: packages/cal3d/src/Mesh.ts:74

Displaced vertices, in ascending vertexId order; vertices not listed don't move.


name ​

ts
name: string;

Defined in: packages/cal3d/src/Mesh.ts:72

Methods ​

offsets() ​

ts
offsets(submesh): object;

Defined in: packages/cal3d/src/Mesh.ts:81

Per-vertex position and normal deltas against submesh, vertexCount * 3 long with zeros for untouched vertices — the layout of three.js relative morph attributes.

Parameters ​

ParameterType
submeshSubmesh

Returns ​

object

normals ​
ts
normals: Float32Array;
positions ​
ts
positions: Float32Array;

Released under the MIT License.