corrected 1 bug in ImportFromPolyMesh

This commit is contained in:
Nico Pietroni 2014-06-30 15:47:23 +00:00
parent 811ac9b940
commit af8ce3b7e2
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ namespace tri {
}
std::vector<int> faces;
TessellatePlanarPolygon3(points,faces);
for(size_t i = 0; i<faces.size()/3;i+=3){
for(size_t i = 0; i<faces.size();i+=3){
TriFaceIterator tfi = Allocator<TriMeshType>::AddFace(tm,
tri::Index(pm,(*fi).V( faces[i+0] )),
tri::Index(pm,(*fi).V( faces[i+1] )),