Verifies an object is a periodic curve object.
rhinoscriptsyntax.IsCurvePeriodic (curve_id, segment_index=-1)
rhinoscript.curve.IsCurvePeriodic (curve_id, segment_index=-1)
curve_id |
Required. String or Guid. The object's identifier. |
segment_index |
Optional. Number. If curve_id identifies a polycurve object, then intIndex identifies the curve segment of the polycurve to query. |
Boolean |
True if successful, otherwise False. |
Null |
On error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a curve")
if rs.IsCurve(obj):
if rs.IsCurvePeriodic(obj):
print "The object is a periodic curve."
else:
print "The object is not a periodic curve."
else:
print "The object is not a curve."