Skip to main content

body_plan_overlap

Function body_plan_overlap 

Source
pub fn body_plan_overlap<'a, 'b>(
    a: impl Into<PlacedBody<'a>>,
    b: impl Into<PlacedBody<'b>>,
    tolerance: Tolerance,
) -> Result<BodyPlanOverlap, BodyMeasureError>
Expand description

Whether the plan projections of two bodies overlap over a patch of positive area – an item of one over an item of the other – are certainly apart, or neither could be shown (#237).

As crate::plan_overlap for one pair, over every item pair by one search: overlap is shown by two planar faces, one of an item of each body, not vertical, whose shadows share an open patch. Items of one body overlapping each other in plan are not an overlap between the bodies.

§Errors

As body_plan_boundary_distance.