Function arc_overlay

Source
pub fn arc_overlay(
    subject: &ArcRing,
    clip: &ArcRing,
    operation: OverlayOperation,
    tolerance: Tolerance,
) -> Result<ArcOverlayResult, OverlayError>
Expand description

Boolean of two arc-capable regions.

Both operands are validated by the same contract the polygon path uses, so malformed input is refused by reason before any work happens.

Returns regions with outer boundaries counter-clockwise and holes clockwise. An empty result is not an error: an intersection of disjoint shapes is legitimately empty.

§Errors

Any validate_arc_ring refusal, and OverlayError::SelfIntersection when an operand’s boundary crosses itself, which the exact linking detects.