convert from off-center object space to center
Hi guys,
So I have this mesh whose object space origin is not the center of the object itself, but offset some distance away. Instead of 're-exporting' this mesh with a centered object-space origin, is there a way to do this programatically?
Basically I'd like to modify all the verts in this mesh to be relative to the 'center' of the object itself. How might I approach this problem?
Thanks for any hints !
-b
Quote:Original post by bob23bobFirst calculate the new center of the object, then subtract this from the old center, and add the resulting vector to each vertex in the mesh.
Basically I'd like to modify all the verts in this mesh to be relative to the 'center' of the object itself. How might I approach this problem?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement