[vtkusers] how to update vtkActor
gbook at gbook.org
Tue Jul 14 09:42:03 EDT 2009
Thanks for the info, but that definitely crashed the program :) It makes
sense to update the modified time, but it didn't work in this case. I know
by looking at the debug info that m_poly is updated. It contains new points
each time I click. I'm not sure how to check if the polyMapper has been
updated, but I don't know why it wouldn't be updated?
2009/7/14 L.J. van Ruijven <L.J.vanRuijven at amc.uva.nl>
> Hi Greg,
> I think your m_vtkWindow does render the window again. But the input data
> is not updated, because it does not notice that its inputdata has changed.
> To solve this issue you should use the Modified() function. I m not sure
> about the preferred usage, but I think replacing m_poly->Update(); by
> m_poly->Modified(); will do it. If not try adding m_conn->Modified(); and
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers