Skip to main content

Module loop_sampling

Module loop_sampling 

Source
Expand description

Sample a coedge loop’s pcurves into a closed (u, v) polygon.

Lives in geop-core-topology rather than geop-ops-rasterize (which also uses it, for triangulation) because geop-core-topology’s own edit code (splice_edge_into_face’s loop-orientation check) needs it too, and topology sits below rasterize in the dependency order.

Functions§

sample_loop_to_polygon
Sample the pcurves of the loop anchored at first (in traversal order) into a closed (u, v) polygon, n samples per coedge (the last sample of each coedge is dropped, since it coincides with the next coedge’s first sample).