Geometry Converters¶
convert
module provides functions for converting nonrational and rational geometries to each other.
Function Reference¶

geomdl.convert.
bspline_to_nurbs
(obj, **kwargs)¶ Converts nonrational splines to rational ones.
Parameters: obj (BSpline.Curve, BSpline.Surface or BSpline.Volume) – nonrational spline geometry Returns: rational spline geometry Return type: NURBS.Curve, NURBS.Surface or NURBS.Volume Raises: TypeError

geomdl.convert.
nurbs_to_bspline
(obj, **kwargs)¶ Converts rational splines to nonrational ones (if possible).
The possibility of converting a rational spline geometry to a nonrational one depends on the weights vector.
Parameters: obj (NURBS.Curve, NURBS.Surface or NURBS.Volume) – rational spline geometry Returns: nonrational spline geometry Return type: BSpline.Curve, BSpline.Surface or BSpline.Volume Raises: TypeError