BezierCurve¶

compute_rhino3d.BezierCurve.
CreateCubicBeziers
(sourceCurve, distanceTolerance, kinkTolerance, multiple=False)¶ Constructs an array of cubic, nonrational Beziers that fit a curve to a tolerance.
Parameters:  sourceCurve (rhino3dm.Curve) – A curve to approximate.
 distanceTolerance (float) – The max fitting error. Use RhinoMath.SqrtEpsilon as a minimum.
 kinkTolerance (float) – If the input curve has a g1discontinuity with angle radian measure greater than kinkTolerance at some point P, the list of beziers will also have a kink at P.
 multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: A new array of bezier curves. The array can be empty and might contain None items.
Return type: rhino3dm.BezierCurve[]

compute_rhino3d.BezierCurve.
CreateBeziers
(sourceCurve, multiple=False)¶ Create an array of Bezier curves that fit to an existing curve. Please note, these Beziers can be of any order and may be rational.
Parameters:  sourceCurve (rhino3dm.Curve) – The curve to fit Beziers to
 multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: A new array of Bezier curves
Return type: rhino3dm.BezierCurve[]