Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / FaceSurface

Interface: FaceSurface ​

Defined in: face/surface.ts:11

The face as something to paint on. A face-tracking runtime gives the one the tracker keeps moving, and an editor gives the canonical face, so both draw the same way with the same UVs.

Properties ​

PropertyModifierTypeDescriptionDefined in
positionsreadonlyFloat32ArrayThree numbers per vertex, in head units. Rewritten in place as the face moves.face/surface.ts:13
uvsreadonlyFloat32ArrayTwo numbers per vertex, with v running up the picture.face/surface.ts:15
revisionreadonlynumberGoes up every time positions changes.face/surface.ts:17

Methods ​

index() ​

ts
index(cuts): ArrayLike<number>;

Defined in: face/surface.ts:19

The triangles, with these parts left open. The same array for the same cuts.

Parameters ​

ParameterType
cutsFaceSurfaceCuts

Returns ​

ArrayLike<number>