Verifies that an object's geometry is valid and without error.
rhinoscriptsyntax.IsObjectValid (object_id)
rhinoscript.object.IsObjectValid (object_id)
object_id |
Required. String or Guid. The identifier of an object. |
True |
The object is valid. |
False |
The object is not valid. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select object")
if rs.IsObjectValid(id):
print "The object is valid."
else:
print "The object is not valid."