How to move a face of a box to that of another? Or a vertice to a vertice? Or an edge to an edge?

How could I possibly move a box to another through only the data of their faces, vertices and / or edges? The idea is to click at one of these (face,edge,vertice) at one box and at those of another box and then to move the first one to the other.

I know, it’s a theoretical question, but I just need some ideas. I have no specific PG for this, only this one, where the vertices get highlighted when hovered over.

https://www.babylonjs-playground.com/#35HAW1#34

Any help is appreciated…thanks in advance

1 Like

Facet data Use Facet Data - Babylon.js Documentation along with Create Custom Meshes - Babylon.js Documentation to understand mesh structure should get you somewhere close.

2 Likes