i have made thes two adjustable lofts and now I would like to add a top and a bottom surface. These surfaces should be made from the edges of the two lofts.
If I have now a second object within the python module that should be substracted from the first one with boleandifference. How must i write the code.
I do not understand what is written in the example-file:
import rhinoscriptsyntax as rs
| filter = rs.filter.surface | rs.filter.polysurface
| input0 = rs.GetObjects(“Select first set of surfaces or polysurfaces”, filter)
| if input0:
| input1 = rs.GetObjects(“Select second set of surfaces or polysurfaces”, filter)
| if input1: rs.BooleanDifference(input0, input1)
so,… if I have two objects obj1 and obj2
what would be the appropriate script for the boleandifference?
import Rhino
tol = Rhino.RhinoDoc.ActiveDoc.ModelAbsoluteTolerance
breps = Rhino.Geometry.Brep.CreateBooleanDifference(A,B, tol)
result=[brep for brep in breps]
ps: A and B are lists
but: if possible avoid booleans, they are relatively slow