[vtkusers] how to update vtkActor

Greg Book 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
> m_points->Modified();
> Leo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090714/fb2f693a/attachment.htm>

More information about the vtkusers mailing list