cad.cad#
Functions#
Details#
- translate(mapping: SplineMapping, displ: Iterable[float])[source]#
Translate a CAD geometry by a given vector displacement.
Translate a single-patch CAD geometry (given as a spline or NURBS mapping) by adding a given displacement vector to the control points of the mapping. The weights of a NURBS mapping are not changed.
- Parameters:
- mappingSplineMapping
The discrete mapping to be translated, which represents a CAD geometry.
- displIterable[float]
The vector displacement by which to translate the geometry.
- Returns:
- SplineMapping
A new discrete mapping representing the translated geometry. It is a NurbsMapping if the input mapping is a NurbsMapping.