I’m trying to access and manipulate the mesh of figures in my scene, but i can’t find a way to access the mesh.
I went the route of node -> object -> shape -> geometry, but that only gives me the original mesh of the unposed and unmorphed figure. Using getCurrentShape instead of getShape doesn’t seem to make a difference.
How would i go about to access all data of the vertices, edges and polygons of the figure as it is in the scene ?
Any help would be greatly appreciated.
Edit : found the answer in this post by Casual in the mcjCollider thread. Using getCachedGeom() instead of getGeometry() gives me the mesh as it is in the scene.
Edit 2 : Doh ! It was right in front of me the whole time, right there in the DS3 script doc. Silly me needs to learn how to read properly
DzVertexMesh DzObject::getCachedGeom ( )
Get the final world-space transformed mesh for this object
Re-evaluates the pipeline if necessary and returns the final world-space mesh for the current shape.