Makes a periodic curve non-periodic. Non-periodic curves can develop kinks when deformed.
rhinoscriptsyntax.MakeCurveNonPeriodic (curve_id, delete_input=False)
rhinoscript.curve.MakeCurveNonPeriodic (curve_id, delete_input=False)
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). |
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. |
import rhinoscriptsyntax as rs
curve = rs.GetObject("Select a curve", rs.filter.curve)
if rs.IsCurvePeriodic(curve): rs.MakeCurveNonPeriodic( curve )