Brep Intersect lines in Ghpython

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 (9.4 KB)

This could be a way, using rhino.geometry

Brep Intersection (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]:
    return curve_list, point_list

a, b = intersect(obj, objs)

from this

1 Like

Cool, thanks Antoine