Verifies an object is a closed curve object.
rhinoscriptsyntax.IsCurveClosed (curve_id)
rhinoscript.curve.IsCurveClosed (curve_id)
curve_id |
Required. String or Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
None |
On error. |
import rhinoscriptsyntax as rs
object = rs.GetObject("Select a curve")
if rs.IsCurve(object):
if rs.IsCurveClosed(oObject):
print "The object is a closed curve."
else:
print "The object is not a closed curve."
else:
print "The object is not a curve."