[vtkusers] Rotating a vtk actor using world coordinates

David Gobbi david.gobbi at gmail.com
Mon Aug 10 13:08:22 EDT 2015


Hi Drak,

Generally it's better design to build a transform or matrix and then apply
that to the actor via SetUserTransform() or SetUserMatrix().  That way, the
transform or matrix is available to you if you have to move other points or
actors between coordinate systems.

To rotate around a point in space, you have to apply a translation to put
that point at the origin, then do the rotation, and then translate back
again.

 - David

On Mon, Aug 10, 2015 at 10:53 AM, Drak <draktharrblorf at gmail.com> wrote:

> I should add that I'm using the vtkImageActor with a vtkImageData as a
> source. It seems that my point of rotation is the bottom left of my image
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150810/636f6f25/attachment.html>


More information about the vtkusers mailing list