OptionalcolorOptionalhiddenHide and Show: a hidden face (see HalfEdge.hidden). Split faces keep it.
One half-edge per inner boundary loop (hole). Empty array for
faces without holes. Each entry points at some half-edge on the
corresponding inner loop; the full loop is recovered by following
next. Inner loops are wound opposite to the outer loop so both
produce the same outward-pointing face normal.
Inner loops are a flat list: nested geometry (island-in-lake- in-island) is represented as additional faces, not as nested inner loops on one face.
OptionalisMemoized result of HalfEdgeMesh.isLoopSimple(face.outerLoop).
null / undefined — unknown, recompute on next read.true — outer boundary loop is simple (typical face boundary,
slit, or properly-nested slit chain).false — outer boundary loop has crossed twin pairs (the
figure-eight signature).Lifecycle: read via HalfEdgeMesh.isFaceOuterLoopSimple(face),
which lazily computes if null. Invalidated (set to null) by every
mutation in HalfEdgeMesh.ts that touches a face's outer-loop
topology — sortEdgesAtVertex (every incident face),
splitFace (both halves), splitEdge (both incident faces),
extrudeFace (new top + side faces), killEdge (surviving
merged face), killVertex (the touched face), reverseFaceWinding
(every face in the reversed component), loftBetweenEdges and the
surface-face constructors (new face), fromJSON (all caches reset).
Validator rule 13 reads through this cache so the cost of walking every face's outer loop only fires on faces that have been mutated since the last validation.
OptionalkindADR-007 — face role after solid/void composition.
'exterior' — outer surface of a '+1' (solid) component, facing air.'interior' — a '+1' face trimmed against a '-1' (void) component; it
looks into the void's negative space. Attributes (color, semanticType)
are inherited from the void at composition time.Derived by the composition engine; never authored by users or tools. Undefined on faces that haven't been through composition.
OptionallidA face closed across a flat outline whose every neighbor lies off its
plane and faces away from it (detectFace): the last face of a
tetrahedron, or the base of a pyramid drawn sides first. It may also
be a face nobody wants: the eaves of a hip roof drawn before its
walls, or the equator of an octahedron drawn a half at a time. So it
is provisional: a loop drawn later that needs its edges from the far
side takes it out (SheetReorientation.reorientSheetsToClose).
OptionallineageAuthoring provenance.
Stamped by the modeling tools' commit path when the face's
boundary was authored (loop-close detection / face split), and
carried forward by extrudeFace onto derived faces (side walls +
backfill) so a prism raised from a traced plan footprint keeps its
plan-camera origin. Absent on untraced / pre-Phase-5 faces.
Serialized omit-when-absent by HalfEdgeMeshIO. Data substrate
only (ADR-010): the kernel never reads it (the extrude
carry-forward is a data copy, not a behavior).
One half-edge on the face's outer boundary loop. Walk next from
here to traverse the full outer boundary. Every face has exactly
one outer loop.
May be transiently null during face construction (between the
faces.set(id, face) and the first edge being stitched in).
Operations on faces pulled from mesh.faces can assume non-null.
H4 validation will enforce outerLoop !== null as a kernel invariant.
OptionalsemanticADR-002 — describes the face interior. Every face has a surface: {kind: 'planar'} for flat faces, {kind: 'ruled'} for curved. Planar is the degenerate case of a ruled surface.
Ruled-surface rails (when surface.kind === 'ruled') reference
half-edges on the outer loop only. Inner loops do not
participate in the surface definition — they trim the active
region without changing the surface type (ADR-006).
OptionaltagsADR-128 D2 — the tags this face carries (TagSet.ts): interned,
absent when untagged. A split face's parts keep it. Saved
omit-when-absent; no kernel operation reads it to decide geometry.
A bounded region on a surface, delimited by an outer loop of half-edges and zero or more inner loops (holes).
Boundary representation (ADR-006). A face carries its boundary as
outerLoopplus the optionalinnerLoopsarray. Inner loops trim the active region of the underlying surface without changing the surface type — a quad with a drilled hole remains a ruled surface whosesurfacedescriptor references only outer-loop half-edges. Faces without holes haveinnerLoops === [](the common case).Orientation convention (ADR-006 Layer 1). The outer loop is wound counter-clockwise when viewed from the face's outward-facing ("positive") side. Each inner loop is wound clockwise when viewed from the same side. Both conventions produce the same outward-pointing face normal under the right-hand rule. This convention gives face front/back coloring a stable meaning — front color renders on the positive (air) side, back color on the negative (material) side — and sets up a future signed-manifold design (ETH Sculptor-style solid/void duality).
Per ADR-002 orientation is still "weak" (a convention, not a kernel-enforced invariant); operations try to respect it but the validator does not yet reject faces that violate it.
Identity contract. A face's
idis stable across operations that translate or reshape the face. In particular, an extrusion moves the clicked face's ID with the translated cap — the face that used to be at the base plane ends up at the new top, still carrying the same id (material, layer, selection follow). A new face id is minted for any "backfill" face synthesized to close the resulting manifold.Since
2025-Q4
Stability
stable