[vtkusers] vtkActor->GetPosition
David Cole
dlrdave at aol.com
Wed Jul 24 12:26:51 EDT 2013
> Here's my question. If I call vtkActor->SetUserMatrix to some matrix -
> I see that the actor moves far away from the origin (because I know my
> axes haven't moved), yet, when I execute the following code, it tells me
> the actor is still at the origin... I don't understand, I'm obviously
> missing something.
Have you tried calling GetBounds or GetCenter instead?
The documentation of these methods [ in the parent class: http://www.vtk.org/doc/nightly/html/classvtkProp3D.html ] says they should be returned in “world coordinates.”
The actor’s position is within its own coordinate system...
HTH,
David C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130724/f74edab5/attachment.htm>
More information about the vtkusers
mailing list