[vtkusers] Actors disappear from render

Jay jayavardhanravi at outlook.com
Tue Oct 24 11:01:32 EDT 2017


The actors from the render window disappear after rendering for few hours.
The actors disappear randomly. Memory consumption remains the same. 

The sample pseudo program:

vtkSmartPointer<CAnimateCallBack> object =
vtkSmartPointer<CAnimateCallBack>::New();
niCallBack->cvar= &cAvar;
cAvar->renderInteractor->AddObserver(vtkCommand::TimerEvent, className);
cAvar->renderInteractor->CreateRepeatingTimer(1);
cAvar->renderInteractor->Start();

// observer class - implemented the /virtual void Execute(vtkObject *caller,
unsigned long eventId, void * vtkNotUsed(callData))/ method

virtual void Execute(vtkObject *caller, unsigned long eventId, void *
vtkNotUsed(callData))
{
 UpdateActors(); // Modified() method not called on each actor
 cAvar->renderWindow->Render();
}

This process updates the render for few hours and later doesn't reneder few
parts

Any suggestions or ideas to solve this would be helpful.




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list