RhinoCommon API
BezierCurveCreateCubicBeziers Method |
Constructs an array of cubic, non-rational beziers that fit a curve to a tolerance.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static BezierCurve[] CreateCubicBeziers( Curve sourceCurve, double distanceTolerance, double kinkTolerance )
Public Shared Function CreateCubicBeziers ( sourceCurve As Curve, distanceTolerance As Double, kinkTolerance As Double ) As BezierCurve()
Parameters
- sourceCurve
- Type: Rhino.GeometryCurve
A curve to approximate. - distanceTolerance
- Type: SystemDouble
The max fitting error. Use RhinoMath.SqrtEpsilon as a minimum. - kinkTolerance
- Type: SystemDouble
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.
Return Value
Type: BezierCurveA new array of bezier curves. The array can be empty and might contain null items.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14