[vtkusers] Moving points in an existing polydata object?
Nigel Nunn
nNunn at ausport.gov.au
Wed Oct 19 21:19:42 EDT 2005
Hi Wesley,
> Do I have to resort to using (and learning how to use!) a
> vtkProgrammableFilter to move points without affecting their
> Wesley connectivity? I'm looking for a way to do this while
> the object is rendered, so changes once made will be visable
> in the render window.
>
> At present I think I'm doing it in a very inefficient manner
> by getting a list of points and cells from the polydata and
> creating a new polydata.
>
> I'm using python 2.3 with VTK 4.2.2.
from C++, I would try:
double v[3]={0.0};
pPoints->GetPoint(i, v);
v[0] = newx;
v[1] = newy;
v[2] = newz;
pPoints->SetPoint(i, v);
pPoints->Modified();
then Update() the pipline.
I guess python has similar?
Nigel
-------------- next part --------------
-------------------------------------------------------------------------------------
This message is intended for the addressee named and may contain confidential and priveleged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
Keep up to date with what's happening in Australian sport.
Visit http://www.ausport.gov.au
-------------------------------------------------------------------------------------
More information about the vtkusers
mailing list