[vtkusers] How to Change the Coordinate of the Points?
Kevin Wright
Kevin.Wright at ansys.com
Mon Aug 25 09:19:50 EDT 2003
> I want to animate a vtkPolyData by change the coordinates of
> the points in the PolyData. But I can't find the function
> call to set the coordinates of the points. Can anyone tell me
> how to do it? Or any other method to animate the object?
Once the polydata has valid points in it:
vtkPoints *pts = polyData->GetPoints();
pts->SetPoint(n,x,y,z);
polyData->Modified();
Kevin.
More information about the vtkusers
mailing list