Geometry · interface
Solid
Explained in Hello world, Meshes and geometry.
interface Solidimport type { Solid } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
positionsreadonly | Float32Array | Three floats a vertex. |
normalsreadonly | Float32Array | Three floats a vertex, unit length, outward. |
uvsreadonly | Float32Array | Two floats a vertex, parametric: 0..1 across each face of a box, around and along a round primitive. Tiling in metres is the caller's, who knows the sizes. |
indicesreadonly | Uint32Array | Counter-clockwise triangles seen from outside. |