[vtkusers] quick question...
Theodore Papatheodorou
tp500 at doc.ic.ac.uk
Tue Apr 5 13:05:52 EDT 2005
Hi,
I am a bit confused. A program I wrote in the past used to work up until
2 months ago when I upgraded to the latest VTK version. Here is a short
snippet of some code that gets each point from a polydata structure,
transforms it and passes it back to the polydata. I have checked whether
the point is actually changed and it is indeed.... but the screen is not
updated... the renderer does not show the change. I tried putting
various "->Modified" statements but no luck. Any ideas? As I said it
used to work fine and I have not made any changes to the code.
polydata_source->DeepCopy(_original_polydata_source);
polydata_source->Modified();
polydata_source->Update();
for (int cnt=0; cnt<polydata_source->GetNumberOfPoints(); cnt++)
{
(polydata_source->GetPoints())->GetPoint(cnt, coord);
Transform(i, coord[0], coord[1], coord[2]);
polydata_source->GetPoints()->SetPoint(cnt, coord);
}
renWindow->Render();
Thanks for your asnwer,
theodoros
More information about the vtkusers
mailing list