]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PR: bug in compactGrid with polyhedrons
authorprascle <prascle>
Sat, 4 Dec 2010 16:50:15 +0000 (16:50 +0000)
committerprascle <prascle>
Sat, 4 Dec 2010 16:50:15 +0000 (16:50 +0000)
src/SMDS/SMDS_UnstructuredGrid.cxx

index 259ccdd9b42d322fa4bf07444c110bc1539a6f63..6ac09cc31d2a7030b9a37917c201893612e010b1 100644 (file)
@@ -320,7 +320,7 @@ void SMDS_UnstructuredGrid::compactGrid(std::vector<int>& 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)