Saved polygon boundaries converted to metres, each closed by repeating its first point at the end.
Original saved polygon identity.
World-metre points in original ring order followed by the first point again; the caller owns the returned arrays.
Whole-mesh normal and oriented-incidence qualifications, including the explicit unproved simplicity, embedding and optimizer limitations.
New indexed mesh in metres with physical polygon-vertex identities; unresolved accumulated normals remain zero and are diagnosed.
One emission report per requested pair in input order, including pairs whose proposed triangles were all omitted.
Sum of retained triangle areas in square millimetres, measured from the published metre positions.
Pair-local repeated-face or omitted-triangle reports; warnings do not discard otherwise finite positive-area faces.
First retained triangle ordinal in the returned mesh for this pair, measured before emitting the pair.
Original pair identity.
Absolute difference between measured retained area and objectiveAreaMm2, in square millimetres.
Number of proposed triangles whose cross-product magnitude was zero or nonfinite.
Number of finite positive-area triangles retained for this pair.
Generate an indexed surface from saved physical polygon identities and P/Q paths. P emits (P_i,Q_j,P_next); Q emits (Q_next,P_i,Q_j). Positive XZ rings and increasing Y stations give outward winding on an ordinary exterior slab. This operation validates the path, not its optimization or geometric embedding. Finite positive-area faces survive incidence warnings; collapsed faces are counted.