From 8fdeccacfc5c039bdd7c782772a47d293aa6e855 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 29 Oct 2015 16:21:55 +0300 Subject: [PATCH] IPAL52921: Instable SIGSEGV on 3D mesh computing --- src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2