[vtkusers] How can i rotate points in the vtkpolydata object directly

David Doria daviddoria at gmail.com
Tue Jul 10 07:44:16 EDT 2012


On Mon, Jul 9, 2012 at 11:58 PM, Ting <ouyting at gmail.com> wrote:
> VTKusers, Hi:
>
>                  How can i rotate points in the vtkpolydata object directly,
> this purpose is rotate the actor around the axis through exchange point[0],
> point[1], point[2] in the vtkpolydata.

Did you see vtkTransformPolyDataFilter?

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData

You can apply any vtkTransform to a vtkPolyData.

David



More information about the vtkusers mailing list