convert from off-center object space to center

Started by
1 comment, last by swiftcoder 15 years, 5 months ago
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
Advertisement
hmm..
Quote:Original post by bob23bob
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?
First 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.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement