]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix of remark for issue 0020115: [CEA 308] Quadratic elements visualization
authorouv <ouv@opencascade.com>
Mon, 22 Jun 2009 10:09:48 +0000 (10:09 +0000)
committerouv <ouv@opencascade.com>
Mon, 22 Jun 2009 10:09:48 +0000 (10:09 +0000)
src/VTKViewer/VTKViewer_GeometryFilter.cxx

index 8aa6cd7ed43cfb14640044e0b3bf4bbd1e4353b4..be5781ae0489162deb6cdb20f699d35e8381c98b 100755 (executable)
@@ -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);