Skip to content

Documentation / @ripl/3d / Face3D

Interface: Face3D

Defined in: 3d/src/core/shape.ts:52

A single face of a 3D mesh, defined by its vertices and an optional precomputed normal.

Properties

PropertyTypeDescriptionDefined in
normal?Vector3The precomputed surface normal. When omitted, it is derived from the first three vertices.3d/src/core/shape.ts:56
verticesVector3[]The face's vertices in local (model) space, ordered counter-clockwise when viewed from the front.3d/src/core/shape.ts:54