Get Surface of Brep that intersects curve

Hi all,

I’m using the Brep | Curve intersection component to intersect a brep with a curve at its endpoint. I’m wondering how to extract the surface of the brep that contains the intersection point.

extract_brep_srf.gh (261.3 KB)
extract_brep_srf_simple.gh (15.4 KB)

The file “extract_brep_srf_simple.gh” contains an example of what I want to achieve.

The file “extract_brep_srf.gh” contains the geometry that I’m using for my project.

I’m not sure how to translate the script from the simple geometry file to the project geometry file. Ideally, I want to avoid deconstructing all the breps cross-referencing each surface with each point since it’s taking about 3-5 minutes for the solver to run each time I try to figure out the problem

basically you need a solution with better performance ?

not sure but maybe directly cullt the initial tree
and clean it afterwards ?


?

what s the bigger pictuer / next step you re after ?

kind regards -tom

Here’s one method:

240311a_extract_brep_srf_simple.gh (12.0 KB)

-Kevin

Hey Tom_P,

I’m trying to transfer the method in the “extract_brep_srf_simple.gh” (which is a simple file illustrating what needs to happen) to the geometry and tree structure found in “extract_brep_srf.gh" (which is a complicated file with the project geometry).

I have a hunch there’s a way to get the surface through Rhinocommon which would avoid testing each face of the structural elements. But I’m not well-versed in using Python/C# to access that type of info.

Ultimately these surfaces will be evaluated and a connection joint placed at the intersection.

Hey Kevin, this is nice because Prune avoids the boolean condition. Do you have any ideas on how to transfer the method to work on data trees of geometry?

Update:

Cross-referencing + pruning is seems to work to get the surfaces, but there are about 800 duplicates.

Not sure how to use the set components to get one unique surface as noted by the area.

extract_brep_srf_duplicates.gh (259.8 KB)

I think this isolates the 80 faces you’re looking for.

240312a_extract_brep_srf.gh (260.5 KB)

-Kevin