API Reference

Class List

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.

Summary

Details

Constructor

MorphTarget(options)

Parameters

optionsobject

Object for passing optional arguments.

options.deltaPositionsnumber[]

An array of 3-dimensional vertex position offsets.

options.deltaNormalsnumber[]

An array of 3-dimensional vertex normal offsets.

options.deltaTangentsnumber[]

An array of 4-dimensional vertex normal tangents.

options.indicesnumber[]

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.

options.namestring

Name.

options.aabbpc.BoundingBox

Bounding box. Will be automatically generated, if undefined.