IsMeshClosed

判断一个网格物件是否闭合。

语法

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."

同见

IsMesh