[vtkusers] How to apply vtkActor transformation to underlying data ?

David Doria daviddoria at gmail.com
Wed Mar 30 11:51:24 EDT 2011


On Wed, Mar 30, 2011 at 11:47 AM, nsarrasin <nsarrasin at phenix-systems.com>wrote:

> Hi all,
>
> I have a polygon (defined by double*) which I render.
> Then I apply some transformation to the vtkActor.
>
> Now I would like to update my initial data. For each point of my set, I
> translate it with vtkActor::GetPosition() and then I apply the
> vtkActor::GetMatrix().
>
> It appears that it's not the right way to do because initial and final
> boundingbox of my polygon doesn't have the same dimensions.
>
> What I am missing ?
>
> Thanks by advance
>

I believe the translation is built into the GetMatrix, so you don't need to
translate it and then apply the matrix, just try applying the matrix.

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


More information about the vtkusers mailing list