From 5927f9636036d4c479db843a87e2e039d8a8ebef Mon Sep 17 00:00:00 2001 From: prascle Date: Sat, 4 Dec 2010 16:50:15 +0000 Subject: [PATCH] PR: bug in compactGrid with polyhedrons --- src/SMDS/SMDS_UnstructuredGrid.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2