From 4c3955b43d5faf1baa425a4c4c2991c345754cc4 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 22 Jun 2009 10:09:48 +0000 Subject: [PATCH] Fix of remark for issue 0020115: [CEA 308] Quadratic elements visualization --- src/VTKViewer/VTKViewer_GeometryFilter.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); -- 2.39.2