Skip to content

Documentation / @imvu/cal3d / BlendVertex

Class: BlendVertex ​

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

A vertex as a morph target displaces it. Values are absolute (the vertex's position and normal at full morph weight), as the file stores them; use MorphTarget.offsets for deltas.

Constructors ​

Constructor ​

ts
new BlendVertex(
   vertexId, 
   position, 
   normal, 
   texCoords?
): BlendVertex;

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

Parameters ​

ParameterTypeDefault valueDescription
vertexIdnumberundefinedIndex of the displaced vertex in the submesh.
positionVector3undefined-
normalVector3undefined-
texCoords?TextureCoordinate[][]-

Returns ​

BlendVertex

Properties ​

normal ​

ts
normal: Vector3;

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


position ​

ts
position: Vector3;

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


texCoords ​

ts
texCoords: TextureCoordinate[] = [];

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


vertexId ​

ts
vertexId: number;

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

Index of the displaced vertex in the submesh.

Released under the MIT License.