[vtkusers] Track and record user given rotations using a trackball?

David Doria daviddoria at gmail.com
Fri Oct 1 19:51:13 EDT 2010


On Fri, Oct 1, 2010 at 7:46 PM, Ambar C <ambarc at gmail.com> wrote:

> I understand the part about the Position and orientation being the
> fields that get changed by the trackball - so how would I go about
> incorporating those changes into the actual data?
>

You could use this:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData

and do
transform->PostMultiply();
transform->Translate(actor->GetPosition())
transform->Rotate(actor->GetOrientation())

Maybe someone else will chime in with a cleaner solution, but this should
work.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101001/eb89a5d5/attachment.htm>


More information about the vtkusers mailing list