I have done a breps intersection in Ghpyhon but found that cannot pass the data out to GH, does anyone know how to do it? Many thanks
Brep Intersection lines.gh (9.4 KB)
I have done a breps intersection in Ghpyhon but found that cannot pass the data out to GH, does anyone know how to do it? Many thanks
Brep Intersection lines.gh (9.4 KB)
This could be a way, using rhino.geometry
Brep Intersection lines.gh (10.8 KB)
import Rhino.Geometry as rg
def intersect(solo_brep, many_breps):
curve_list = []
point_list = []
my_intersection = rg.Intersect.Intersection
for brep in many_breps:
results = my_intersection.BrepBrep(solo_brep, brep, 0.01)
if results[0]:
curve_list.extend(results[1])
curve_list.extend(results[2])
return curve_list, point_list
a, b = intersect(obj, objs)
from this
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.intersect.intersection/brepbrep
Cool, thanks Antoine