Merging Brep Members Based on Proximity to Centroid

Hello Everyone,
In my project, I have used Karamba to create beams going across a 2 way grid, and I’m trying to make individual brep beams as their own whole beams, but when I’m converting the karamba mesh to a brep the webbing and flanges are their own polysurfaces. and now I’m trying to figure out how I can merge those 3 pieces together.

I’ve tried merging them based on proximity, and individual lists, but I’m not super familiar with lists and data trees, or I’m sure there’s a smarter way altogether of doing this.

I’ve attached the script and a couple of images, if it helps.
Thank you!



StructureScript.gh (43.0 KB)

You can use the KettyBIM Plugin to perform what you intend to do. It is a very powerful plugin. Can design curtain walls, Steel profiles, Bolts availability, drawing processing, and many more.


H Steel profile.gh (24.0 KB)
KettyBIM | Food4Rhino

You might want to upload a file without the Karamba components to get better help with the mesh to brep conversion. A file with just the meshes but still in a tree structure would do.

Hi, i could not open the reference, but you can use the following workflow to convert the meshes to nurbs with lunchbox


convert to brep.gh (44.5 KB)