Geometry · interface

Solid

Explained in Hello world, Meshes and geometry.

interface Solid
import type { Solid } from '@driftengine/core';

Properties

NameTypeDescription
positionsreadonlyFloat32ArrayThree floats a vertex.
normalsreadonlyFloat32ArrayThree floats a vertex, unit length, outward.
uvsreadonlyFloat32ArrayTwo 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.
indicesreadonlyUint32ArrayCounter-clockwise triangles seen from outside.