@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 ​
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
positions | readonly | Float32Array | Three numbers per vertex, in head units. Rewritten in place as the face moves. | face/surface.ts:13 |
uvs | readonly | Float32Array | Two numbers per vertex, with v running up the picture. | face/surface.ts:15 |
revision | readonly | number | Goes 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 ​
| Parameter | Type |
|---|---|
cuts | FaceSurfaceCuts |
Returns ​
ArrayLike<number>

