Joining a .stp or .stl file with the Grasshopper construction as one body

I would like to connect a .stp or .stl file with the geometry of the Grasshopper construction so that the two components form one body. Can I use the Solid Union node for this procedure or is there a better approach to solve this?

Is one body a Brep (stp) and one a mesh (stl)?

So that would mean that the Brep would need to be converted to a mesh and then unioned as a mesh result. This is mathematically easier since the mesh is the lowest detail level.

Or another option is to try and convert the Mesh to a Brep. This can be more difficult as it information needs to be added to the mesh to make it s BREP. Then a Solid union could be used.

A third way which is least accurate, but most flexible is to use Shrinkwrap.

1 Like