RhinoCommon API
CurveCreatePeriodicCurve Method (Curve, Boolean) |
Removes kinks from a curve. Periodic curves deform smoothly without kinks.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Curve CreatePeriodicCurve( Curve curve, bool smooth )
Public Shared Function CreatePeriodicCurve ( curve As Curve, smooth As Boolean ) As Curve
Parameters
- curve
- Type: Rhino.GeometryCurve
The curve to make periodic. Curve must have degree >= 2. - smooth
- Type: SystemBoolean
If true, smooths any kinks in the curve and moves control points to make a smooth curve. If false, control point locations are not changed or changed minimally (only one point may move) and only the knot vector is altered.
Return Value
Type: CurveThe resulting curve if successful, null otherwise.

Rhino for Windows
Supported in: 6.14