[vtkusers] Rotating a Polydata around an arbitrary axis not centered on the origin

Bill Lorensen bill.lorensen at gmail.com
Thu May 2 15:55:43 EDT 2013


This will do the rotate part:
http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/RotationAroundLine

To do it about a point, first translate to the point, rotatewxyz and then
translate back.



On Thu, May 2, 2013 at 3:27 PM, Gideon Valch <gvalch1237 at gmail.com> wrote:

>
> Hello,
>
> I need to rotate a polydata around an arbitrary axis (not X, Y or Z) not
> centered on the origin.  Is there a preferred way of doing this in VTK? I
> believe the URL below describes the transformations. But I suspect there is
> an easier way of doing this in VTK.  Any help would be appreciated.
>
>
> http://inside.mines.edu/~gmurray/ArbitraryAxisRotation/
>
> thanks,
> GV
>
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130502/a488aa1f/attachment.htm>


More information about the vtkusers mailing list