Solid.fixTriangleWindingsByAdjacency()

July 1, 2026 ยท View on GitHub

Reorients authored triangles so shared edges are used with opposite directions and the mesh becomes coherently wound.

Usage

solid.fixTriangleWindingsByAdjacency();

Signature

solid.fixTriangleWindingsByAdjacency()

Parameters

None.

Returns

Solid - The same solid, for chaining.

Run this when importing or building triangles manually and winding consistency is uncertain.