[vtkusers] vtkPolyData points update

Raashid Baig raashid.b at rediffmail.com
Wed Nov 14 23:24:55 EST 2007


Originally posted by Matheus Viana in orkut's vtk community

How I can update the coordinates of a particular
cell of a polydata? For example, I have a polydata
that contain several lines and I need update the
coordinates of the points of the i-nth line.
Now, I'm using:

Line = PolyData -> GetCell(i);

for ( j = 0; j < number of points in the i-cell; j++ ){

Line -> GetPoints() -> SetPoint(j,new_value);

}

PolyData -> GetPoints() -> Modified();

When I make the new actor, the position of the
i-nth line is the same that the original.

What is wrong??   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071115/cfa1e00f/attachment.htm>


More information about the vtkusers mailing list