Skip to main content

Module uv_loop

Module uv_loop 

Source
Expand description

A face’s loop in its surface’s parameter plane: the signed area it encloses, integrated exactly from its pcurves (loop_signed_area), and a polygon sampled along them, for the rasterizer to triangulate (sample_loop_to_polygon).

Ask the area which way a loop runs, never a sampled polygon: the gap between a polygon and the pcurves is part of no enclosure (see geop_core_geometry::nurb_curve::loop_signed_area).

Functions§

loop_signed_area
The signed area, in (u, v), of the loop anchored at first: positive counter-clockwise, negative clockwise.
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).
sample_pcurves_to_polygon
Sample pcurves, a loop’s in order, into a closed (u, v) polygon: n points evenly along each one’s domain, its end left out, as the next one starts there.