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
| Property | Type | Description | Defined in |
|---|---|---|---|
depth | number | The average projected depth of the face, used for back-to-front sorting. | 3d/src/core/shape.ts:70 |
fillColor | string | The shaded fill colour applied to the face. | 3d/src/core/shape.ts:64 |
lineWidth | number | undefined | The stroke line width, if any. | 3d/src/core/shape.ts:68 |
points | ProjectedPoint[] | The face's screen-space points, each carrying a depth component. | 3d/src/core/shape.ts:62 |
strokeStyle | string | undefined | The stroke style applied to the face edges, if any. | 3d/src/core/shape.ts:66 |