Skip to main content

Module tess

Module tess 

Source
Expand description

Tessellation of the Creo B-rep: contours → regions → ear clipping in the parameter plane → 3D, with every edge evaluated once on its most exact face so that neighbouring faces share identical vertices, then refined with PN triangles along the analytic normals.

Structs§

Coarse
The coarse mesh: per-face vertices (not yet welded) with their analytic normals, and triangles oriented outwards.

Functions§

add_twins
Faces referenced by edges but without a record of their own: the second half of a split periodic face. It shares the primitive of the known face behind a straight seam edge (type 1 or 8, constant u on both sides).
build
Welds the per-face vertices, refines along the normals and builds the preview mesh (model units are kept).
repair_twins
Twins whose convention stayed unresolved got the wrong partner: the curved record whose best candidate fits the 3D points known from the resolved neighbours becomes the donor. Returns how many were changed.
tessellate
Tessellates every face of a solid body.