From: eap Date: Thu, 29 Oct 2015 13:21:55 +0000 (+0300) Subject: IPAL52921: Instable SIGSEGV on 3D mesh computing X-Git-Tag: V8_0_pre X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8fdeccacfc5c039bdd7c782772a47d293aa6e855;p=modules%2Fgui.git IPAL52921: Instable SIGSEGV on 3D mesh computing --- diff --git a/src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx b/src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx index cf7bdbece..d9b49cd51 100755 --- a/src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx +++ b/src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx @@ -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;