Skip to main content

solid_section

Function solid_section 

Source
pub fn solid_section(
    solid: &BrepSolid,
    origin: Vec3,
    normal: Vec3,
    chord_tolerance: f64,
) -> Result<Vec<Vec<Vec3>>, KernelRefusal>
Expand description

Where the plane through origin square to normal cuts the boundary of solid, in pieces in any order: each piece is one edge of the cut, as points along it from end to end, every chord within chord_tolerance of the edge curve. The pieces join end to end into the closed curves of the cut; a piece that is a whole closed curve ends on its first point. Empty when the plane misses the solid.