Skip to main content

section_intersection

Function section_intersection 

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

Boolean intersection 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.