判断一个网格物件是否闭合。
rhinoscriptsyntax.IsMeshClosed (object_id)
rhinoscript.mesh.IsMeshClosed (object_id)
object_id |
必须参数。字符串或 Guid。物件的 ID 。 |
布尔值 |
如果执行成功,返回 True,如果执行不成功返回 False。 |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a mesh", rs.filter.mesh)
if rs.IsMeshClosed(obj):
print "The mesh is closed."
else:
print "The mesh is not closed."