I am trying to get all the vertices of a 3D model after importing using the OBJLoader. I can alternatively write my own parser to get these vertices but I was wondering if there is such a facility available in THREEjs
It’s not clear what and how you do to try to get the vertices.
You can use .traverse()
on the object, returned by OBJLoader, check, if node.isMesh
, and, if so, get access to node’s .geometry.attributes.position