RhinoCompute.BezierCurve

RhinoCompute.BezierCurve.createCubicBeziers(sourceCurve, distanceTolerance, kinkTolerance, multiple=false)

Constructs an array of cubic, non-rational Beziers that fit a curve to a tolerance.

Arguments:
  • 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 g1-discontinuity 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[]

RhinoCompute.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.

Arguments:
  • 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[]