While this function wasn't created to be blazingly fast (if it's performance you want, then save the TriMesh to a binary file and use that instead), I've changed it a little to improve performance. Now uses std::for_each() to normalize the vectors, and moved TriMesh::getNumTriangles() out of the loop.
While this function wasn't created to be blazingly fast (if it's performance you want, then save the TriMesh to a binary file and use that instead), I've changed it a little to improve performance. Now uses std::for_each() to normalize the vectors, and moved TriMesh::getNumTriangles() out of the loop.

sosolimited/Cinder,morbozoo/sonyHeadphones,morbozoo/sonyHeadphones,sosolimited/Cinder,morbozoo/sonyHeadphones,sosolimited/Cinder,2666hz/Cinder,2666hz/Cinder,2666hz/Cinder,2666hz/Cinder,morbozoo/sonyHeadphones,sosolimited/Cinder