]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
untabify
authoreap <eap@opencascade.com>
Thu, 17 Nov 2011 11:20:18 +0000 (11:20 +0000)
committereap <eap@opencascade.com>
Thu, 17 Nov 2011 11:20:18 +0000 (11:20 +0000)
src/OBJECT/SMESH_ExtractGeometry.cxx

index 63023dd84cb5756ba0aa59506c5a0522d1eb9553..db42da397456e6133afc6a469a1851fb071d5ec2 100644 (file)
@@ -239,14 +239,14 @@ int SMESH_ExtractGeometry::RequestData(
       
     if ( npts >= numCellPts || (this->ExtractBoundaryCells && npts > 0) )
       {
-       if(cell->GetCellType() == VTK_POLYHEDRON) {
-         newCellPts->Reset();
-         vtkUnstructuredGrid::SafeDownCast(input)->GetFaceStream( cellId ,newCellPts );        
-         vtkUnstructuredGrid::ConvertFaceStreamPointIds(newCellPts, pointMap);
-       }
-         newCellId = output->InsertNextCell(cell->GetCellType(),newCellPts);
-         myElemVTK2ObjIds.push_back(cellId);
-         outputCD->CopyData(cd,cellId,newCellId);
+        if(cell->GetCellType() == VTK_POLYHEDRON) {
+          newCellPts->Reset();
+          vtkUnstructuredGrid::SafeDownCast(input)->GetFaceStream( cellId ,newCellPts );        
+          vtkUnstructuredGrid::ConvertFaceStreamPointIds(newCellPts, pointMap);
+        }
+          newCellId = output->InsertNextCell(cell->GetCellType(),newCellPts);
+          myElemVTK2ObjIds.push_back(cellId);
+          outputCD->CopyData(cd,cellId,newCellId);
       }
     }//for all cells