Skip to main content

face_from_surface_trimmed

Function face_from_surface_trimmed 

Source
pub fn face_from_surface_trimmed(
    surface: &NurbsSurface,
    loops: &[Vec<NurbsCurve>],
) -> Result<BrepSolid, KernelRefusal>
Expand description

A sheet of one face on surface bounded by loops: the first its outer boundary, the rest holes. Each loop is a closed chain of curves lying on the surface, head to tail in either sense (a single closed curve is a loop of one); each curve becomes an edge and each joint a vertex. The face’s normal is the surface’s own.

The curves’ images in the surface’s parameters are the kernel’s (crate::build_pcurve_on_surface: exact on a plane, fitted elsewhere). The loops are turned the way a face needs them, the outer one counter-clockwise about the normal and the holes clockwise.

Refuses an empty loop, a chain that does not close, and a curve that does not lie on the surface.