]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
IPAL52921: Instable SIGSEGV on 3D mesh computing V8_0_pre
authoreap <eap@opencascade.com>
Thu, 29 Oct 2015 13:21:55 +0000 (16:21 +0300)
committereap <eap@opencascade.com>
Thu, 29 Oct 2015 13:21:55 +0000 (16:21 +0300)
src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx

index cf7bdbece7547857c66f755c055f8ef156d88706..d9b49cd519c6260901184e0a9f96b6f8b1234393 100755 (executable)
@@ -145,8 +145,8 @@ inline int InsertCell(vtkUnstructuredGrid *theInput,
       theFaceLocations->InsertNextValue(theFaces->GetMaxId() + 1);
 
       // insert cell connectivity and faces stream
-      vtkIdType nfaces;
-      vtkIdType* face;
+      vtkIdType nfaces = 0;
+      vtkIdType*  face = 0;
       vtkIdType realnpts;
       theInput->GetFaceStream(theCellId, nfaces, face);
       vtkUnstructuredGrid::DecomposeAPolyhedronCell(
@@ -154,7 +154,7 @@ inline int InsertCell(vtkUnstructuredGrid *theInput,
     }
 #endif
 
-  vtkIdType anID = theCellTypesArray->InsertNextValue(aCellType);
+  /*vtkIdType anID = */theCellTypesArray->InsertNextValue(aCellType);
   if(theStoreMapping){
     theOut2InId.push_back(theCellId);
     theIn2OutId[theCellId] = theOutId;