Skip to main content

section_difference

Function section_difference 

Source
pub fn section_difference(
    a: &Section,
    b: &Section,
) -> Result<Vec<Section>, BooleanError>
Expand description

Boolean difference between two full sections (outer boundary + holes).

Mirrors shapely geometry - other as used by Python sectionproperties.

Returns one Section per disjoint result region, or BooleanError if the underlying polygon booleans fail validation.