Skip to main content

restate_geometry

Function restate_geometry 

Source
pub fn restate_geometry(
    model: &mut Model,
    shape: &Shape,
    surface: SurfaceRestatement<'_>,
    curve: CurveRestatement<'_>,
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Rebuild a solid with its surfaces and curves restated by the caller, every placement baked in and every pcurve re-derived against the new surfaces at the new edges’ parameters.

surface is handed each face’s surface, placed and bounded to the face; curve each edge’s curve, placed, with the edge’s range on it. Each answers None to keep what it was handed. A restatement must trace the same points: the rebuild re-derives trims, it does not move boundaries.

§Errors

As to_nurbs, and whatever a restatement returns.