(obj, **kwargs)
return ret
Converts non-rational splines to rational ones.

    :param obj: non-rational spline geometry
    :type obj: BSpline.Curve, BSpline.Surface or BSpline.Volume
    :return: rational spline geometry
    :rtype: NURBS.Curve, NURBS.Surface or NURBS.Volume
    :raises: TypeError
Converts non-rational splines to rational ones.
Converts non - rational splines to rational ones .
def bspline_to_nurbs(obj, **kwargs):
    """ Converts non-rational splines to rational ones.

    :param obj: non-rational spline geometry
    :type obj: BSpline.Curve, BSpline.Surface or BSpline.Volume
    :return: rational spline geometry
    :rtype: NURBS.Curve, NURBS.Surface or NURBS.Volume
    :raises: TypeError
    """
    # B-Spline -> NURBS
    if isinstance(obj, BSpline.Curve):
        ret = cvt.convert_curve(obj, NURBS)
    elif isinstance(obj, BSpline.Surface):
        ret = cvt.convert_surface(obj, NURBS)
    elif isinstance(obj, BSpline.Volume):
        ret = cvt.convert_volume(obj, NURBS)
    else:
        raise TypeError("Input must be an instance of B-Spline curve, surface or volume")
    
    return ret
def bspline_to_nurbs ( obj , * * kwargs ) : # B-Spline -> NURBS if isinstance ( obj , BSpline . Curve ) : ret = cvt . convert_curve ( obj , NURBS ) elif isinstance ( obj , BSpline . Surface ) : ret = cvt . convert_surface ( obj , NURBS ) elif isinstance ( obj , BSpline . Volume ) : ret = cvt . convert_volume ( obj , NURBS ) else : raise TypeError ( "Input must be an instance of B-Spline curve, surface or volume" ) return ret