Skip to main content

face_boundary

Function face_boundary 

Source
pub fn face_boundary(
    model: &Model,
    face: &Shape,
    deflection: Deflection,
    tol: Tolerances,
) -> OgeomResult<Vec<Vec<Point2>>>
Expand description

A face’s trimming boundary, in its surface’s parameter space.

The outer wire first, then any holes, each as a closed ring of (u, v) points with no repeated closing point. A face with no wires covers its surface’s whole domain, and gets that rectangle as its boundary.

Public because parameter-space trimming is not only the triangulator’s concern: classifying a point against a face, splitting a face in a boolean, and hidden-line removal all ask the same question of the same rings, and each deriving them separately would be three chances to disagree.

§Errors

As triangulate_face.