small change to do not insert and cycle to find polygons of size 0
This commit is contained in:
parent
c3beef6091
commit
e9ba519fa4
|
@ -143,6 +143,7 @@ namespace tri {
|
||||||
ExtractPolygon(&*tfi,vs);
|
ExtractPolygon(&*tfi,vs);
|
||||||
std::reverse(vs.begin(),vs.end());
|
std::reverse(vs.begin(),vs.end());
|
||||||
//now vs contains all the vertices of the polygon (still in the trimesh)
|
//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);
|
typename PolyMeshType::FaceIterator pfi = tri::Allocator<PolyMeshType>::AddFaces(pm,1);
|
||||||
(*pfi).Alloc(vs.size());
|
(*pfi).Alloc(vs.size());
|
||||||
for(size_t i = 0 ; i < vs.size(); ++i)
|
for(size_t i = 0 ; i < vs.size(); ++i)
|
||||||
|
|
Loading…
Reference in New Issue