Skip to main content

solid_outward_normals

Function solid_outward_normals 

Source
pub fn solid_outward_normals(
    solid: &BrepSolid,
    points: &[Vec3],
    tolerance: f64,
) -> Result<Vec<Option<Vec3>>, KernelRefusal>
Expand description

The outward unit normal at each point of the solid’s boundary (within tolerance, mm), where the boundary has a tangent plane there: None at a crease, where faces meet at an angle, or off the boundary. A point on a smooth edge, where the faces meet tangentially, has the faces’ common normal.