Auto-rotate object to coordinate system?

Imagine you’re importing an object that’s completely symmetrical, but that’s rotated incorrectly (in EDIT MODE). How would you rotate it back, so the vertices at the right side precisely correspond with the ones at the left side?

I suppose this image can help explain, though planes of course don’t have left or right sides. But in any case… How would you rotate this one, so the vertices at top are precisely aligned with the ones at the bottom (x = 0). (Moving individual verticies is not an option, imagine that plane is a hideously complex character with 500 000 vertices.)


I’ve tried doing it manually, but it really needs to be 100% perfect.

select both vertices. scale them to zero along the x axis (press ‘S’ then ‘X’ then the zero key then the enter key)

That doesn’t work for a complex character.

Also, in the above example, that changes the plane’s length.

i guess you have to rotate your object !
and then you need to clear the rotation with Ctrl-A or Ctrl-R
to that the values are reseted to zero !

salutations

Here’s a way using the align to view/parent to an empty method. A bit long winded so there may be a more simpler method.
http://www.screencast.com/users/blenderwho/folders/Jing/media/7b2f25df-a375-4187-bcce-ca426ad7d050