r/computergraphics • • Nov 24 '24

3d snapping

3 Upvotes

How would one implement 3D snapping in some 3D editor?

What happens if I have a box mesh in perspective, and further behind it some super heavy 3D model with millions of vertices? Within some threshold I could have the entirety of the heavy model and only one vertex on the box.

My only idea at the moment is to try to see how big a projected node of a BVH is and stop traversing if it’s too small, pick a random vertex further inside it.