Geometry Converters

convert module provides functions for converting non-rational and rational geometries to each other.

Function Reference

geomdl.convert.bspline_to_nurbs(obj, **kwargs)

Converts non-rational splines to rational ones.

Parameters:obj (BSpline.Curve, BSpline.Surface or BSpline.Volume) – non-rational spline geometry
Returns:rational spline geometry
Return type:NURBS.Curve, NURBS.Surface or NURBS.Volume
geomdl.convert.nurbs_to_bspline(obj, **kwargs)

Converts rational splines to non-rational ones (if possible).

The possibility of converting a rational spline geometry to a non-rational one depends on the weights vector.

Parameters:obj (NURBS.Curve, NURBS.Surface or NURBS.Volume) – rational spline geometry
Returns:non-rational spline geometry
Return type:BSpline.Curve, BSpline.Surface or BSpline.Volume