I am searching for a way to implement the same functionality as autodesk forge provides to split a 3d model into all available parts and zoom into them. Example is here:
Forge | RCDB
Is there maybe an example of such a function?
c291ff6885d66ef85921e90013a5797eac3fab02
1032×961 147 KB
The format or tool does not matter, it depends how the 3D file is authored. The 3D file/model has to have all the various sections of geometry already separated into known scene objects. This is the only way for any tool to target them individually and move them appropriately.
Without the file having been authored like this , how do you expect a tool, any tool, to understand what sections of geometry are meant to be treated as a collective part?
GLB files support objects so if the file was authored for this type of granular control then it would be possible to target those objects and move them.
If you have such a file , then exploding the parts could use a generic movement system and move each part along a certain axis , that would also mean the objects need to have the same system of baked rotations so that such code could work.