CLASSES
TagsA - Z

MorphTarget

Description

class MorphTarget

Constructor

new MorphTarget(name, influence)

Parameters

Name Type Description
name string
optional influence number

Members

name : string

animations : Animation[]

onInfluenceChanged : Observable<boolean>

influence : number

hasNormals : boolean

hasTangents : boolean

Methods

setPositions(data, number) → void

Parameters

Name Type Description
data Float32Array or number

getPositions() → Float32Array

setNormals(data, number) → void

Parameters

Name Type Description
data Float32Array or number

getNormals() → Float32Array

setTangents(data, number) → void

Parameters

Name Type Description
data Float32Array or number

getTangents() → Float32Array

serialize() → any

Serializes the current target into a Serialization object.

Returns the serialized object.

static Parse(serializationObject) → MorphTarget

Parameters

Name Type Description
serializationObject any

static FromMesh(mesh, name, influence) → MorphTarget

Parameters

Name Type Description
mesh AbstractMesh
optional name string
optional influence number