subtract_multiple_2d

Function subtract_multiple_2d 

Source
pub fn subtract_multiple_2d(
    profile: &Profile2D,
    void_contours: &[Vec<Point2<f64>>],
) -> Result<Profile2D>
Expand description

Perform 2D boolean difference with multiple voids at once

More efficient than calling subtract_2d multiple times as it performs a single boolean operation.

§Arguments

  • profile - The base profile to subtract from
  • void_contours - List of void footprints to subtract

§Returns

  • Ok(Profile2D) - The resulting profile with all voids subtracted