How to auto-align/snap 3d edges of triangulated surfaces

Hey guys its Tomás here, Im working on a project and I need to do the following thing:

I have 2 surfaces (in other cases there are multiple of the orange one) that are triangulated and are in 3D. The thing is that I need to make the white surface as an extension of the orange one, so I must snap the edges of both to make it one surface. I started doing it manually but it is so time consuming as I have a lot these, even bigger with a lot of orange surfaces to adapt, so maybe there is a way to do it automatically?
Im new using rhino and grasshopper so I dont know if it would be possible to make this.

I attach the rhino file so maybe someone could explain how could I do it if possible.

Thanks in advance.

-Tomás
SURFACESTOJOIN.3dm (3.6 MB)

What does this mean?
Move upper to down or build new edges with hitting points?

I mean to move the surface down so the edges become the same, not to build new ones

In the pic is the result I want, but in this case I did it moving the vertex manually.

Mesh Snap Down Edited v0.gh (41.7 KB)

1 Like

thanks for your fast reply!
I think thats not what Im looking for as the orange mesh gets distorted when running these parameters.

Anyways I tried playing with it inverting the meshes so the gray one is the one moving (and the orange one stays the same, thats what I need) but Im getting this error:

SURFACESTOJOIN.3dm (3.9 MB)

Mesh Snap Down Edited v1.gh (71.6 KB)

Oh, I see you like to move the whole mesh down, not only the verts.

1 Like

Yes! thats exactly what I want, but I need the gray one to be adapting to the orange. Lets say the orange mesh is the “main” one and cant be modified, but the gray one must adapt to it.

Do you think inverting the meshes in your grasshopper file would work?
Also I would like to know what if I have more than one “main” mesh, is it possible to adapt the gray one to multiple meshes?

Mesh Snap Down Edited v2.gh (70.4 KB)

more than one “main” mesh

Make them into one mesh with the Comble&Clean, or components can weld mesh verts.

1 Like

okay I feel its perfect now. I want to ask if you did something to the meshes in the sent .3dm file before running your components, as I copy the components to a new file and I get this error I dont know why, probably because I didnt prepare the mesh properly? sorry Im super new to this grasshopper/rhino world:

Also referring to the multiple “main” meshes issue, is it also valid if the meshes are not conected? I show what I mean in this pic:

Thanks for all your help!

Need to see the mesh

sorry I forgot to attach.

SURFACESTOJOIN.3dm (4.0 MB)

Mesh Snap Down Edited v3.gh (70.4 KB)

Couldn’t see any problem.

Case like this will not work, they are too far away.

1 Like

Yes!!! Its working perfectly for now! Thank you very much for your time and solution, you definitely saved me a lot of working hours!

Have a nice day

-Tomás

Hello sorry to bother you again, Im again having the same issue. Yesterday I tried it (v.3) and it worked but now I dont know why it does not. Do you know why Im getting this problem and how could I solve it so it does not happen again with the other parts I need to work on?

TOJOIN.3dm (2.8 MB)

-Tomás

Please upload internalised GH file. Need to see the gh.

internalisesgeometry.gh (182.3 KB)

Hope I did it right

Mesh Snap Down Edited v4.gh (188.9 KB)
Try this.

1 Like

Yes! its working now again! I hope I don’t have any issues when doing the rest of my project, but I feel it will work good.

Thank you so much again!

-Tomás

Mesh Snap Down Edited v5 GrasshopperPlayer Ready.gh (187.3 KB)
GH file will work as Rhino command if you make the definition right and make a Macro to run it.

Write the Macro in this format in Alias.
-_GrasshopperPlayer “C:\Users\meari\Documents\Rhino\Definitions For Grasshopper Player\Move to above the the world origin.gh”

1 Like

Thank you very very much! This will save me a lot of time, I will implement it on my Rhino right now!

thanks again! have a nice day!

-Tomás