Verifies a mesh object is manifold. A mesh for which every edge is shared by at most two faces is called a manifold. If a mesh has at least one edge that is shared by more than two faces, then that mesh is called non-manifold.
rhinoscriptsyntax.IsMeshManifold (object_id)
rhinoscript.mesh.IsMeshManifold (object_id)
object_id |
Required. String or Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a mesh", rs.filter.mesh)
if rs.IsMeshClosed(obj):
print "The mesh is manifold."
else:
print "The mesh is non-manifold."