Skip to main content

surface_missed

Function surface_missed 

Source
pub fn surface_missed(
    curve: &NurbCurve3D,
    faces: impl IntoIterator<Item = usize>,
    surfaces: &[NurbSurface3D],
) -> GeopResult<Option<(usize, Vector3)>>
Expand description

The first of the faces faces, indices into surfaces, whose surface curve does not lie on all along, with a point that shows it: the middle of the first stretch of the curve that is off the surface. None if the curve could lie on all of them. A curve built for an edge between moved faces is only right if it does.

Whether it lies on a surface is what curve_surface_overlaps finds: a stretch of it on the surface runs between two points where the curve or the surface ends, so all of the curve lies on it if one stretch runs from the curve’s start to its end.