rs.BooleanDifference(input0, input1, delete_input=True) # 差 rs.BooleanIntersection(input0, input1, delete_input=True) # 交差 rs.BooleanUnion(input, delete_input=True) # 和
2つの球の差を求める
import rhinoscriptsyntax as rs a = [] s0 = rs.AddSphere([0,0,0], 50) s1 = rs.AddSphere([40,0,0], 40) a.extend(rs.BooleanDifference(s0, s1))
実行結果