Skip to main content

contour_to_arc_ring

Function contour_to_arc_ring 

Source
pub fn contour_to_arc_ring(
    contour: &Contour,
    tolerance: Tolerance,
) -> GeomResult<ArcRing>
Expand description

Convert one closed contour into an arc ring.

Returns the ring in contour order, one vertex per joint. Segment endpoints must already meet, within tolerance or within the rounding of their own evaluation, whichever is larger (see the module notes on Tolerance::ZERO); gaps are reported rather than closed, because a silently bridged gap changes the profile the caller asked for.