[vtkusers] vtkTransform regarding

Bill Lorensen bill.lorensen at gmail.com
Sun Sep 2 13:18:48 EDT 2012


Your single transform is enough.

On Sun, Sep 2, 2012 at 12:45 PM, Jothybasu Selvaraj <jothybasu at gmail.com>wrote:

> Hi all,
>
> I am wondering what is the right way of applying
> translate-rotate-translate using vtkTransform. Right now I am doing this by
>
> tr->PostMultiply();
> tr->Translate(x,y,z); //where tr is a vtkTransform
> tr->RotateZ(90.0);
> tr->Translate(-x,-y,-z);
>
>
> pdtf->SetTransform(tr);//pdtf is a vtkPolyDataTransfromFilter
>
> I read somewhere that PostMultiply() applies transform in the order
> specified. Does this really apply translation twice or
>
> should I translatr once and apply rotation then used another vtkTransform
> to translate it back?
>
> Any prompt hints are highly appreciated!
>
> Thanks
>
> Jothy
> --
> Jothybasu Selvaraj
> PhD Student
> University of Liverpool
> UK
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120902/e7ef949a/attachment.htm>


More information about the vtkusers mailing list