Skip to main content

nearest_boundary_point

Function nearest_boundary_point 

Source
pub fn nearest_boundary_point(
    solid: &BrepSolid,
    point: Vec3,
    tolerance: f64,
) -> Result<Option<BoundaryFoot>, KernelRefusal>
Expand description

The boundary point nearest point, on the solid’s exact geometry, and where it lies. tolerance (mm) is the band a face foot may stand past its trim and still count as inside it. None for a solid with no boundary. A face foot on its trim’s boundary band gives way to an edge or vertex foot within tolerance of it: the point lies on that edge (or vertex) within the tolerance, where the faces’ normals decide crease or smooth.