Function overlay

Source
pub fn overlay(
    subject: &OverlayInput,
    clip: &OverlayInput,
    operation: OverlayOperation,
    fill: FillRule,
    tolerance: Tolerance,
) -> Result<OverlayResult, OverlayError>
Expand description

Performs a neutral planar overlay. Output ordering is deterministic: polygons sort by outer-ring lexicographic start, rings are canonicalized CCW/CW.

Exact (#173): where boundaries cross and which side of each piece lies in the result are exact decisions; the tolerance only validates the operands and settles the output. An input vertex the operation does not move comes back bit-identical, and a crossing of two edges is the double nearest to the exact crossing point.