# Center and orient mesh of a head

I have a very accurate mesh of my head, captured by photogrammetry (http://ir-ltd.net/)

I would like to rotate and translate it so that it is as symmetrical as possible on the x axis.

How could I go about doing this?

Here is a close up of an ear:

Now maybe I could position a sphere...

And then position one of the opposite side in the same place, and then take the average of their centres, translate that back to the origin, and then perform appropriate rotation.

I can write a Python script that gets as far as the translation, but I'm not sure how to do the final rotation.

Also can anyone think of any other techniques?

PS it is essential to mesh scale must be preserved!

EDIT: Another technique might involve selecting one ear and calculating the average of all vertex positions. Then doing the same for the other ear. And then taking the line between these two centroids to be the new X axis.

But then the problem becomes how to select the ear? Specifically, how to make sure the second ear is selected in a similar way.

• So your scanned head is rotated somehow in 3D space, and you want to rotate it to be axis-aligned (with X or Y axis), and the center should be at the scene origin at 0,0,0? (center as in the middle of a virtual line connecting both ears for instance) Feb 21 '14 at 1:26
• Yes! I can get it pretty close by eye, but not exact.
– P i
Feb 21 '14 at 7:16