Skip to content

Documentation / @ripl/3d / ProjectedFace3D

Interface: ProjectedFace3D

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

A projected face ready for 2D rendering with screen-space points, fill/stroke styles, and depth.

Properties

PropertyTypeDescriptionDefined in
depthnumberThe average projected depth of the face, used for back-to-front sorting.3d/src/core/shape.ts:70
fillColorstringThe shaded fill colour applied to the face.3d/src/core/shape.ts:64
lineWidthnumber | undefinedThe stroke line width, if any.3d/src/core/shape.ts:68
pointsProjectedPoint[]The face's screen-space points, each carrying a depth component.3d/src/core/shape.ts:62
strokeStylestring | undefinedThe stroke style applied to the face edges, if any.3d/src/core/shape.ts:66