From 37e7d0edf621e1b45547e4271b01ebb8a98583c2 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 12 Jan 2006 09:41:34 +0000 Subject: [PATCH] Fix for Bug GVIEW10225 Suspended highlight after removal of nodes --- src/SVTK/SVTK_Actor.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/SVTK/SVTK_Actor.cxx b/src/SVTK/SVTK_Actor.cxx index 56a9768e8..f4331a4c9 100644 --- a/src/SVTK/SVTK_Actor.cxx +++ b/src/SVTK/SVTK_Actor.cxx @@ -114,7 +114,8 @@ SVTK_Actor ::MapCells(SALOME_Actor* theMapActor, const TColStd_IndexedMapOfInteger& theMapIndex) { - myUnstructuredGrid->Reset(); + myUnstructuredGrid->Initialize(); + myUnstructuredGrid->Allocate(); vtkDataSet *aSourceDataSet = theMapActor->GetInput(); CopyPoints(GetSource(),aSourceDataSet); @@ -142,7 +143,9 @@ SVTK_Actor ::MapPoints(SALOME_Actor* theMapActor, const TColStd_IndexedMapOfInteger& theMapIndex) { - myUnstructuredGrid->Reset(); + myUnstructuredGrid->Initialize(); + myUnstructuredGrid->Allocate(); + if(int aNbOfParts = theMapIndex.Extent()){ vtkPoints *aPoints = vtkPoints::New(); aPoints->SetNumberOfPoints(aNbOfParts); @@ -169,7 +172,8 @@ SVTK_Actor ::MapEdge(SALOME_Actor* theMapActor, const TColStd_IndexedMapOfInteger& theMapIndex) { - myUnstructuredGrid->Reset(); + myUnstructuredGrid->Initialize(); + myUnstructuredGrid->Allocate(); vtkDataSet *aSourceDataSet = theMapActor->GetInput(); CopyPoints(GetSource(),aSourceDataSet); -- 2.39.2