diff --git a/vcg/complex/algorithms/polygon_polychord_collapse.h b/vcg/complex/algorithms/polygon_polychord_collapse.h index a9ed041f..0fbf999b 100644 --- a/vcg/complex/algorithms/polygon_polychord_collapse.h +++ b/vcg/complex/algorithms/polygon_polychord_collapse.h @@ -959,6 +959,11 @@ public: FaceIterator firstAddedFaceIt = vcg::tri::Allocator::AddFaces(mesh, FN, facesToUpdate); // add vertices to the mesh VertexIterator firstAddedVertexIt = vcg::tri::Allocator::AddVertices(mesh, VN, verticesToUpdate); + + // delete the added starting position's face and vertex pointers + facesToUpdate.pop_back(); + verticesToUpdate.pop_back(); + // allocate and initialize 4 vertices and ffAdj for each new face for (FaceIterator fIt = firstAddedFaceIt; fIt != mesh.face.end(); fIt++) { fIt->Alloc(4);