Vertices are only what the section functions emit: every position comes
from a chain evaluation or is an inherited vertex of a parent ring. This
module never invents coordinates; it connects rings that share one phase
set and closes poles with fans.
Orientation
Rings are ordered by increasing phase, which runs from the front (+X)
toward +Z: counter-clockwise in the (x, z) plane. For a lower ring L and
an upper ring U, the up direction u = U_i - L_i and the phase direction
d = L_{i+1} - L_i give the outward normal u x d. The triangles
(L_i, U_i, L_{i+1}) and (L_{i+1}, U_i, U_{i+1}) are therefore
counter-clockwise seen from outside, the front-face convention of the
viewer.
Indexed triangle emission for lofted rings.
Vertices are only what the section functions emit: every position comes from a chain evaluation or is an inherited vertex of a parent ring. This module never invents coordinates; it connects rings that share one phase set and closes poles with fans.
Orientation
Rings are ordered by increasing phase, which runs from the front (+X) toward +Z: counter-clockwise in the (x, z) plane. For a lower ring L and an upper ring U, the up direction
u = U_i - L_iand the phase directiond = L_{i+1} - L_igive the outward normalu x d. The triangles(L_i, U_i, L_{i+1})and(L_{i+1}, U_i, U_{i+1})are therefore counter-clockwise seen from outside, the front-face convention of the viewer.