I've noticed considerable Q&A on this topic within this group, but it is all rather dated - sometimes over 10 years ago. Given the need/demand for doing this, wondering/hoping if some recent three.js code might exist to make it easier. The situation is something like this:
- Read in a possibly large/complex VRML model using the provided loader
- Determine how much of its hierarchy and details have been retained in the three.js scene graph
- Systematically traverse in a depth-first fashion starting at the SG root node
- Determine the type and properties of each node visited
- Determine the hierarchical position of each of these nodes