MakeCurveNonPeriodic

Makes a periodic curve non-periodic.  Non-periodic curves can develop kinks when deformed.

Syntax

rhinoscriptsyntax.MakeCurveNonPeriodic (curve_id, delete_input=False)

rhinoscript.curve.MakeCurveNonPeriodic (curve_id, delete_input=False)

Parameters

curve_id

Required.  String or Guid.  The object's identifier.

delete_input

Optional.  Boolean.  Delete input curve.  If omitted, the input curve will not be deleted (False).

Returns

Guid

If delete_input is False, the identifier of the new object if successful.

Guid

If delete_input is True, the identifier of the modified object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

curve = rs.GetObject("Select a curve", rs.filter.curve)

if rs.IsCurvePeriodic(curve): rs.MakeCurveNonPeriodic( curve )

Also See

IsCurvePeriodic

MakeCurvePeriodic