pub fn extent_along<M: TriangleMeshView + ?Sized>(
mesh: &M,
triangles: &[usize],
along: Vec3,
) -> Result<Option<Interval>, FaceSelectionError>Expand description
Extent of the listed triangles along along: the least and greatest of
p . u over every corner, u = along / |along|, as start and end.
Duplicate and unordered triangle indices are fine. An empty list gives
None. The triangles need not form a surface; only their corners are read.
ยงErrors
FaceSelectionError::InvalidDirection for an unusable along;
FaceSelectionError::TriangleOutOfRange,
FaceSelectionError::IndexOutOfRange or
FaceSelectionError::NonFinitePosition naming the first offending
listed triangle.