Skip to content

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 ​

PropertyTypeDescriptionDefined in
depthnumberThe average projected depth of the face, used for back-to-front sorting.3d/src/core/shape.ts:168
fillColorstring | undefinedThe shaded fill color applied to the face, or undefined when the material is a wireframe.3d/src/core/shape.ts:162
lineWidthnumber | undefinedThe stroke line width, if any.3d/src/core/shape.ts:166
pointsProjectedPoint[]The face's screen-space points, each carrying a depth component.3d/src/core/shape.ts:160
state?ProjectedFaceState3DThe 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
strokeStylestring | undefinedThe stroke style applied to the face edges, if any.3d/src/core/shape.ts:164
texture?TextureThe 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