Expand description
Whole-shape conversion: everything as NURBS, and general affine transforms over a shape.
The geometry-level conversions are exact. What a shape needs is the operator that walks it and restates every dependent description, because conversion necessarily reparameterizes: a circle’s parameter is its angle and a rational quadratic’s is not. So every edge’s range moves to its converted curve’s domain, and every pcurve is re-derived against a surface whose parameterization has also moved. Re-deriving a pcurve is a fit, at the edge’s own parameters, so same-parameter holds by construction.
The affine operator rides on top: an affine map moves a B-spline’s control points and nothing else, so the parameterizations of the converted shape survive the transform untouched, including every fitted pcurve, which is the point of converting first.
Functions§
- baked_
shape - Rebuild a solid, a shell, a face, or a compound of them, with its placements baked into the geometry, keeping every surface and curve in its own analytic vocabulary.
- baked_
where_ placed - The shape with its placements baked in where any is placed, as
baked_shaperebuilds it; the shape itself, with an empty history, where no face, surface, edge occurrence or edge curve in it is placed. - general_
transformed_ shape - Rebuild a solid, a shell, a face, or a compound of them, under a general affine transform.
- normals_
oppose - Whether
new’s normal points againstold’s where they meet, read off the middle ofold’s chart: what a restatement reports when it replaces a surface by one of the same points. - restate_
geometry - Rebuild a shape 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.
- to_
nurbs - Rebuild a solid, a shell, a face, or a compound of them, with every surface and curve in B-spline form.
- to_
nurbs_ within - Rebuild a shape with every surface and curve in B-spline form: exactly
where a closed form exists, as
to_nurbsdoes, and fitted withintolerancewhere none does (an offset surface, a helix, an offset curve), whereto_nurbsrefuses.
Type Aliases§
- Curve
Restatement - A caller’s restatement of a curve over a range: the new curve and the
range on it tracing the same points, or
Noneto keep it. - Surface
Restatement - A caller’s restatement of a surface: the new surface and whether its
normal points against the old one’s, or
Noneto keep it.