RhinoCommon Split Brep with multiple Breps

通过grasshopper的python代码切分面的代码:

x 为item类型 brep;y为list类型 brep

import rhinoscriptsyntax as rs
import scriptcontext as sc
tol = sc.doc.ModelAbsoluteTolerance  # 范围值

import Rhino


# 将需要切分的面构成一个 brep集合
cutter = Rhino.Geometry.Brep()
for b in y:
    cutter.Append(b)
    

pieces = x.Split(cutter, tol)

a = pieces
print(pieces)

RhinoCommon Split Brep with multiple Breps

 

上一篇:C# 获取两个日期之间所有的日期


下一篇:pandas排序csv文件并且按时间分类 python学习 pandas应用