cad.cad#

Functions#

elevate(mapping, axis, times)

Elevate the mapping degree times time in the direction axis.

refine(mapping, axis, values)

Refine the mapping by inserting values in the direction axis.

translate(mapping, displ)

Translate a CAD geometry by a given vector displacement.

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.

elevate(mapping, axis, times)[source]#

Elevate the mapping degree times time in the direction axis.

Note: we are using igakit for the moment, until we implement the elevation degree algorithm in psydac

refine(mapping, axis, values)[source]#

Refine the mapping by inserting values in the direction axis.

Note: we are using igakit for the moment, until we implement the knot insertion algorithm in psydac