Skip to main content

sample_loop_to_polygon

Function sample_loop_to_polygon 

Source
pub fn sample_loop_to_polygon<S: Scalar>(
    model: &Model<S>,
    first: CoedgeId,
    n: usize,
) -> GeopResult<Vec<Vector2<S>>>
Expand description

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).