对输入的两组网格进行布尔交集运算。获取更多信息,请参考 Rhino 帮助文件中有关 MeshBooleanIntersection 指令的内容。
rhinoscriptsyntax.MeshBooleanIntersection(input0, input1, delete_input=True)
rhinoscript.mesh.MeshBooleanIntersection(input0, input1, delete_input=True)
input0 |
必须参数。列表。网格的 ID 。 |
input1 |
必须参数。列表。网格的 ID 。 |
delete_input |
可选参数。布尔值。删除所有的输入物件。默认情况下会删除所有的输入物件(Ture)。 |
列表 |
执行成功,返回包含新生成物件 ID 的列表。 |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsyntax as rs
input0 = rs.GetObjects("Select first set of meshes", rs.filter.mesh)
if input0:
input1 = rs.GetObjects("Select second set of meshes", rs.filter.mesh)
if input1: rs.MeshBooleanIntersection(input0, input1)