Skip to main content

Module face

Module face 

Source

Enums§

PointClassification
Result of classifying a query point against a face’s trimmed boundary.

Functions§

face_contains
Classify (u, v) against face_id’s trimmed boundary (outer loop minus holes): PointClassification::OnVertex / PointClassification::OnCoedge if the query point itself coincides with a vertex or lies on a coedge’s pcurve, else PointClassification::Inside/PointClassification::Outside via ray casting in parameter space.
face_interior_point
A (u, v) strictly inside face_id’s trimmed region.
face_interior_point_where
Like face_interior_point, but for a caller that needs a point with some further property: up to one interior point per outer coedge (stepped in from it, in loop order) is handed to accept, and the first it accepts is returned. Ok(None) means interior points were found but none was accepted; an error, as for face_interior_point, that none was found.
loops_contain
The same classification as face_contains, but against an explicit set of loops rather than all of a face’s.