How to determine which mesh elements are touching another?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm at the planning stage of a Max plugin whose first operation would be to determine which objects in a scene are touching each other and count the number of contacts. I'd then like to sort them from least to most neighbors in a hierarchical tree with "leaves" having a value of 1, and twigs, branches and trunk having successively higher and higher values. Think of "Minesweeper" and the number of mines each square is touching....
These objects are typically tangential rather than overlapping (they are walls, floors, ducts etc exported from Revit. They typically have overlapping vertices
I'd like to not use bounding box intersections as it throws false positives in cases of L shaped objects.
Does anyone have any thoughts on this? Would I want to try raycasting from the vertices? Or creating spheres centered on the vertices which could intersect other objects?
Thanks