Remove unused vertices when reordering. Unused vertices would be mapped to the origin and cause an error during projection to 2D.
Add test.
Add another test.
Merge pull request #1236 from AnalyticalGraphicsInc/issue1234

Remove unused vertices.