Skip to content

Documentation / scene / PCAGeometryCacheTrack

Class: PCAGeometryCacheTrack ​

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:39

Geometry cache track reconstructed from PCA bases and coefficients.

Extends ​

Constructors ​

Constructor ​

new PCAGeometryCacheTrack(data?, embedded?): PCAGeometryCacheTrack

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:52

Parameters ​

data? ​

Partial<PCAGeometryCacheTrackData>

embedded? ​

boolean

Returns ​

PCAGeometryCacheTrack

Overrides ​

AnimationTrack.constructor

Accessors ​

name ​

Get Signature ​

get name(): string

Defined in: libs/scene/src/animation/animationtrack.ts:45

Human-readable name of the track.

Returns ​

string

Set Signature ​

set name(val): void

Defined in: libs/scene/src/animation/animationtrack.ts:48

Parameters ​
val ​

string

Returns ​

void

Inherited from ​

AnimationTrack.name


embedded ​

Get Signature ​

get embedded(): boolean

Defined in: libs/scene/src/animation/animationtrack.ts:54

Whether this track is embedded (owned inline by a resource/container).

Returns ​

boolean

Inherited from ​

AnimationTrack.embedded


animation ​

Get Signature ​

get animation(): AnimationClip

Defined in: libs/scene/src/animation/animationtrack.ts:60

The AnimationClip that owns this track.

Returns ​

AnimationClip

Set Signature ​

set animation(ani): void

Defined in: libs/scene/src/animation/animationtrack.ts:63

Parameters ​
ani ​

AnimationClip

Returns ​

void

Inherited from ​

AnimationTrack.animation


target ​

Get Signature ​

get target(): string

Defined in: libs/scene/src/animation/animationtrack.ts:72

Logical target identifier for this track (optional metadata).

This does not affect application; it can be used by tooling or higher-level systems to label/group tracks.

Returns ​

string

Set Signature ​

set target(val): void

Defined in: libs/scene/src/animation/animationtrack.ts:75

Parameters ​
val ​

string

Returns ​

void

Inherited from ​

AnimationTrack.target


jointIndex ​

Get Signature ​

get jointIndex(): number

Defined in: libs/scene/src/animation/animationtrack.ts:81

Joint index if this track controls a joint, otherwise -1

Returns ​

number

Set Signature ​

set jointIndex(index): void

Defined in: libs/scene/src/animation/animationtrack.ts:84

Parameters ​
index ​

number

Returns ​

void

Inherited from ​

AnimationTrack.jointIndex


times ​

Get Signature ​

get times(): Float32Array<ArrayBufferLike>

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:77

Returns ​

Float32Array<ArrayBufferLike>

Set Signature ​

set times(value): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:81

Parameters ​
value ​

Float32Array

Returns ​

void


bounds ​

Get Signature ​

get bounds(): [number, number, number, number, number, number][]

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:85

Returns ​

[number, number, number, number, number, number][]

Set Signature ​

set bounds(value): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:89

Parameters ​
value ​

[number, number, number, number, number, number][]

Returns ​

void


positionMean ​

Get Signature ​

get positionMean(): Float32Array<ArrayBufferLike>

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:93

Returns ​

Float32Array<ArrayBufferLike>

Set Signature ​

set positionMean(value): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:105

Parameters ​
value ​

Float32Array

Returns ​

void


positionReference ​

Get Signature ​

get positionReference(): Float32Array<ArrayBufferLike>

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:97

Returns ​

Float32Array<ArrayBufferLike>

Set Signature ​

set positionReference(value): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:101

Parameters ​
value ​

Float32Array<ArrayBufferLike>

Returns ​

void


positionBases ​

Get Signature ​

get positionBases(): Float32Array<ArrayBufferLike>[]

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:116

Returns ​

Float32Array<ArrayBufferLike>[]

Set Signature ​

set positionBases(value): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:120

Parameters ​
value ​

Float32Array<ArrayBufferLike>[]

Returns ​

void


positionCoefficients ​

Get Signature ​

get positionCoefficients(): Float32Array<ArrayBufferLike>[]

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:124

Returns ​

Float32Array<ArrayBufferLike>[]

Set Signature ​

set positionCoefficients(value): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:128

Parameters ​
value ​

Float32Array<ArrayBufferLike>[]

Returns ​

void


normalMean ​

Get Signature ​

get normalMean(): Float32Array<ArrayBufferLike>

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:132

Returns ​

Float32Array<ArrayBufferLike>

Set Signature ​

set normalMean(value): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:136

Parameters ​
value ​

Float32Array<ArrayBufferLike>

Returns ​

void


normalBases ​

Get Signature ​

get normalBases(): Float32Array<ArrayBufferLike>[]

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:140

Returns ​

Float32Array<ArrayBufferLike>[]

Set Signature ​

set normalBases(value): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:144

Parameters ​
value ​

Float32Array<ArrayBufferLike>[]

Returns ​

void


normalCoefficients ​

Get Signature ​

get normalCoefficients(): Float32Array<ArrayBufferLike>[]

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:148

Returns ​

Float32Array<ArrayBufferLike>[]

Set Signature ​

set normalCoefficients(value): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:152

Parameters ​
value ​

Float32Array<ArrayBufferLike>[]

Returns ​

void

Methods ​

clone() ​

clone(): this

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:73

Clone this animation track

Returns ​

this

Overrides ​

AnimationTrack.clone


calculateState() ​

calculateState(_target, currentTime): GeometryCacheState

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:156

Compute the animation state at the specified time.

Implementations should be pure with respect to inputs: given the same target and currentTime, return the same StateType.

Parameters ​

_target ​

object

currentTime ​

number

Time cursor in seconds within the track's timeline.

Returns ​

GeometryCacheState

The computed state at currentTime.

Overrides ​

AnimationTrack.calculateState


applyState() ​

applyState(target, state): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:181

Apply a previously computed animation state to the target.

Parameters ​

target ​

object

The animated object to modify.

state ​

GeometryCacheState

The state to apply.

Returns ​

void

Overrides ​

AnimationTrack.applyState


mixState() ​

mixState(a, b, t): object

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:196

Blend two states into a new state using a weight.

Parameters ​

a ​

GeometryCacheState

First state.

b ​

GeometryCacheState

Second state.

t ​

number

Blend weight in [0, 1], where 0 yields a and 1 yields b.

Returns ​

object

The blended state.

positions ​

positions: Float32Array<ArrayBuffer>

normals ​

normals: Float32Array<ArrayBufferLike>

boundingBox ​

boundingBox: BoundingBox

Overrides ​

AnimationTrack.mixState


getBlendId() ​

getBlendId(): string

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:218

Get the blend identifier for this track.

Tracks with the same blend ID are considered compatible for blending on the same target channel/property.

Returns ​

string

An identifier used to group compatible tracks for blending.

Overrides ​

AnimationTrack.getBlendId


getDuration() ​

getDuration(): number

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:222

Get the intrinsic duration of this track in seconds.

Used by clips to determine overall clip duration and looping behavior.

Returns ​

number

Track duration (seconds).

Overrides ​

AnimationTrack.getDuration


reset() ​

reset(target): void

Defined in: libs/scene/src/animation/pca_geometry_cache_track.ts:226

Reset the track to its initial state for the given target.

Intended to stop playback and rewind the target to the first frame or default state.

Parameters ​

target ​

object

Returns ​

void

Overrides ​

AnimationTrack.reset

Released under the MIT License.