Build a boundary representation from planar convex polygonal faces.
Extrusion, revolution and sweep each impose a shape on the result; this is
the general form for a solid whose faces are simply stated, such as a ridged
roof, a wedge or a chamfered pier, without authoring raw vertex arrays. Each
face owns its corners, so its flat normal stays sharp across every seam.
Faces are emitted in declaration order, each fanned from its first corner,
and the input is only read.
Texture coordinates are local metres in a frame the face's own normal
decides, anchored on the mesh origin before any later mesh transform. A face
that is not level takes world up projected into its plane as V, so courses
run level and every upright face of one mesh reads the same V at the same
height: a wall return, a column wrap and a countertop edge continue their
coursing around a corner. U is the remaining in-plane axis and does not
continue around a corner, because continuing both axes across a fold is a
developed layout this kernel does not cut. A level face takes world +X as U
instead, so a floor and the ceiling above it mirror rather than diverge.
Because the frame comes from the normal and not from the corner list,
coplanar faces form one continuous surface however their corners were
typed, and the same polygon started at another corner keeps its atlas.
The face normal is taken at the first corner that is not straight, so a
straight corner anywhere in the list, the first included, neither collapses
the normal nor refuses the face. Refused, each by its own
diagnostic naming the face: no faces; fewer than three corners; a non-finite
corner; a face whose corners are all collinear; a corner off the face's
plane; a reflex corner; and a ring that turns around more than once, such as
a pentagram, whose fan would cover ground the face does not. Convexity is
required because the face is fanned from its first corner. Whether the
result is a closed shell is the caller's to declare and
inspectAutoMovieMeshTopology's to measure.
Build a boundary representation from planar convex polygonal faces.
Extrusion, revolution and sweep each impose a shape on the result; this is the general form for a solid whose faces are simply stated, such as a ridged roof, a wedge or a chamfered pier, without authoring raw vertex arrays. Each face owns its corners, so its flat normal stays sharp across every seam. Faces are emitted in declaration order, each fanned from its first corner, and the input is only read.
Texture coordinates are local metres in a frame the face's own normal decides, anchored on the mesh origin before any later mesh transform. A face that is not level takes world up projected into its plane as V, so courses run level and every upright face of one mesh reads the same V at the same height: a wall return, a column wrap and a countertop edge continue their coursing around a corner. U is the remaining in-plane axis and does not continue around a corner, because continuing both axes across a fold is a developed layout this kernel does not cut. A level face takes world +X as U instead, so a floor and the ceiling above it mirror rather than diverge. Because the frame comes from the normal and not from the corner list, coplanar faces form one continuous surface however their corners were typed, and the same polygon started at another corner keeps its atlas.
The face normal is taken at the first corner that is not straight, so a straight corner anywhere in the list, the first included, neither collapses the normal nor refuses the face. Refused, each by its own diagnostic naming the face: no faces; fewer than three corners; a non-finite corner; a face whose corners are all collinear; a corner off the face's plane; a reflex corner; and a ring that turns around more than once, such as a pentagram, whose fan would cover ground the face does not. Convexity is required because the face is fanned from its first corner. Whether the result is a closed shell is the caller's to declare and
inspectAutoMovieMeshTopology's to measure.