From: ouv Date: Mon, 22 Jun 2009 10:09:48 +0000 (+0000) Subject: Fix of remark for issue 0020115: [CEA 308] Quadratic elements visualization X-Git-Tag: V5_1_2rc3~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c3955b43d5faf1baa425a4c4c2991c345754cc4;p=modules%2Fgui.git Fix of remark for issue 0020115: [CEA 308] Quadratic elements visualization --- diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index 8aa6cd7ed..be5781ae0 100755 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -198,8 +198,13 @@ VTKViewer_GeometryFilter cellVis = new char[numCells]; } - // Just pass points through, never merge - output->SetPoints(input->GetPoints()); + // Issue 0020115: [CEA 308] Quadratic elements visualization + // Fix of remark described in note 0005222 - SIGSEGV + vtkPoints* outputPoints = vtkPoints::New(); + outputPoints->DeepCopy(input->GetPoints()); + output->SetPoints(outputPoints); + outputPoints->Delete(); + outputPD->PassData(pd); outputCD->CopyAllocate(cd,numCells,numCells/2);