svg_path/winding_field
Winding-field sampling shared by arrangement operations.
Values
pub fn nonzero_level_at(
point: svg_path.Point,
within path: svg_path.Path,
options options: svg_path.ContainmentOptions,
) -> Result(Int, svg_path.Error)
Return the signed Nonzero winding level at a point. Boundary samples fall back to filled/not-filled because a signed winding is undefined there.
pub fn segment_side_nonzero_levels(
segment: svg_path.Segment,
within path: svg_path.Path,
tolerance tolerance: Float,
options options: svg_path.ContainmentOptions,
) -> Result(#(Int, Int), svg_path.Error)
Sample the Nonzero winding field immediately on the geometric left and right of a segment. The first result is the left-side level.