Skip to main content

make_face_with_pcurves

Function make_face_with_pcurves 

Source
pub fn make_face_with_pcurves(
    model: &mut Model,
    surface: SurfaceGeometry,
    wires: &[Vec<Shape>],
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Build a face on surface from per-wire edge lists, attaching an exact same-parameter pcurve to every edge.

The construction path for faces whose curves were chosen to have closed-form charts: blend wedges, offset rebuilds. Every edge’s curve must lie on the surface in a configuration ogeom_intersect::exact_pcurve_of recognises; a fitted pcurve here would manufacture disagreement where none exists, so an edge with no closed form is refused instead.

§Errors

As make_wire and make_face, and OgeomError::Construction if an edge has no 3D curve or no closed-form pcurve on surface.