Documentation / @ripl/3d / ProjectedFace3D
Interface: ProjectedFace3D ​
Defined in: 3d/src/core/shape.ts:158
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:168 |
fillColor | string | undefined | The shaded fill color applied to the face, or undefined when the material is a wireframe. | 3d/src/core/shape.ts:162 |
lineWidth | number | undefined | The stroke line width, if any. | 3d/src/core/shape.ts:166 |
points | ProjectedPoint[] | The face's screen-space points, each carrying a depth component. | 3d/src/core/shape.ts:160 |
state? | ProjectedFaceState3D | The drawing state to paint the face with, captured when it was projected. Faces sharing one state object are painted in a single scope, so identity matters. Absent when the context does not defer its face drawing. | 3d/src/core/shape.ts:174 |
strokeStyle | string | undefined | The stroke style applied to the face edges, if any. | 3d/src/core/shape.ts:164 |
texture? | Texture | The texture to map across the face, if the material has one and the face carries UVs. | 3d/src/core/shape.ts:176 |
uvs? | Vector2[] | The face's texture coordinates, parallel to points. | 3d/src/core/shape.ts:178 |