From: prascle Date: Sat, 4 Dec 2010 16:50:15 +0000 (+0000) Subject: PR: bug in compactGrid with polyhedrons X-Git-Tag: V6_2_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5927f9636036d4c479db843a87e2e039d8a8ebef;p=modules%2Fsmesh.git PR: bug in compactGrid with polyhedrons --- diff --git a/src/SMDS/SMDS_UnstructuredGrid.cxx b/src/SMDS/SMDS_UnstructuredGrid.cxx index 259ccdd9b..6ac09cc31 100644 --- a/src/SMDS/SMDS_UnstructuredGrid.cxx +++ b/src/SMDS/SMDS_UnstructuredGrid.cxx @@ -320,7 +320,7 @@ void SMDS_UnstructuredGrid::compactGrid(std::vector& idNodesOldToNew, int n newFaces->Allocate(this->Faces->GetSize()); for (int i = 0; i < oldCellSize; i++) { - if (newTypes->GetValue(i) == VTK_EMPTY_CELL) + if (this->Types->GetValue(i) == VTK_EMPTY_CELL) continue; int newCellId = idCellsOldToNew[i]; if (newTypes->GetValue(newCellId) == VTK_POLYHEDRON)