openframeworks/openFrameworks — pull request #1654 by tgfrerer (2012-10-09 12:40:47+00:00)
Title: fix - ofMesh.load() resolves an issue where Normals wouldn't be loaded

## issue

When saving a .ply file using ofMesh::save(), Normals are stored as vertex element properties. This is in line with the .ply file format specs.

In ofMesh.load() Normals are, however, not imported back in again, since ofMesh.load() expects normals to be in a separate element list.

## test case

See test case here:

http://github.com/tgfrerer/testMeshLoader

## fix proposed

Attached fix brings ofMesh::load() in line with ofMesh::save() and the .ply file format specs. It loads normals as vertex element attributes, if normals are declared & stored in the .ply file.