We’re writing a custom piece of code to control a resin based dlp-3d-printer.
In the software i would like to be able load an .stl file and recognize disjoint meshes.
I noticed Rhino does this very fast.
Even if i manually hussle the facets in a ascii .stl file rhino still figures out correctly that i disjoint meshes.
(So it doesn’t use the order of the facets either)
Is there any commonly accepted algorithm that is used for recognizing this?
I’ve written a test algorithm that detects neighbours of faces but it behaves very slow with large stl files.
Thought i ask here