M_Rhino_Geometry_BezierCurve_CreateCubicBeziers - mcneel/rhinocommon-api-docs GitHub Wiki
Constructs an array of cubic, non-rational beziers that fit a curve to a tolerance.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static BezierCurve[] CreateCubicBeziers(
Curve sourceCurve,
double distanceTolerance,
double kinkTolerance
)
VB
Public Shared Function CreateCubicBeziers (
sourceCurve As Curve,
distanceTolerance As Double,
kinkTolerance As Double
) As BezierCurve()
- sourceCurve
- Type: Rhino.Geometry.Curve
A curve to approximate. - distanceTolerance
- Type: System.Double
The max fitting error. Use RhinoMath.SqrtEpsilon as a minimum. - kinkTolerance
- Type: System.Double
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.
Type: BezierCurve[]
A new array of bezier curves. The array can be empty and might contain null items.
Supported in: 6.0.16224.21491, 5D58w