[vtkusers] How to translate a scene

David Doria daviddoria at gmail.com
Thu Aug 4 23:45:27 EDT 2011


On Thu, Aug 4, 2011 at 4:56 PM, David Brayford <dbrayford at gmail.com> wrote:

> Hi,
>
> I am trying to translate a scene along one axis and would normally
> translate the camera position rather than apply the translation to the
> whole scene. However, I don't know the commands to do the equivalent
> of glTranslate(20, 0, 0); or the equivalent rotation glRotate(theta,
> 1, 0, 0). I am finding the transformations in VTK difficult to
> implement, even though I know the required mathematical operations.
>
> Thanks
> David
>

Please take a look at this example:
 http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TransformActor

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


More information about the vtkusers mailing list