if(TGaussPtsActorFactory* aFactory = anActor->GetGaussPtsFactory()){
if(VISU_GaussPtsAct* anActor2 = aFactory->CloneActor(anActor)){
anActor2->GetGaussPointsPL()->SetImplicitFunction(myImplicitFunction.GetPointer());
- SVTK_Renderer::AddActor(theActor);
+ SVTK_Renderer::AddActor(anActor2);
}
}
}
{
using namespace VISU;
if(VISU_GaussPtsAct* anActor = dynamic_cast<VISU_GaussPtsAct*>(theActor)){
- if(TGaussPtsActorFactory* aFactory = anActor->GetGaussPtsFactory()){
- if(VISU_GaussPtsAct* anActor2 = aFactory->CloneActor(anActor)){
- anActor2->GetGaussPointsPL()->SetImplicitFunction(NULL);
- SVTK_Renderer::RemoveActor(theActor);
- }
- }
+ anActor->GetGaussPointsPL()->SetImplicitFunction(NULL);
+ SVTK_Renderer::RemoveActor(theActor);
}
}