small change to do not insert and cycle to find polygons of size 0

This commit is contained in:
Nico Pietroni 2014-09-14 01:02:42 +00:00
parent c3beef6091
commit e9ba519fa4
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ namespace tri {
ExtractPolygon(&*tfi,vs);
std::reverse(vs.begin(),vs.end());
//now vs contains all the vertices of the polygon (still in the trimesh)
if (vs.size()==0)continue;
typename PolyMeshType::FaceIterator pfi = tri::Allocator<PolyMeshType>::AddFaces(pm,1);
(*pfi).Alloc(vs.size());
for(size_t i = 0 ; i < vs.size(); ++i)