[vtkusers] Multiple Transformation

Wenlong Wang scc.wwl at gmail.com
Fri Nov 11 05:12:20 EST 2011


Hi Dženan,

Thank you for your reply. I think I get it.

Thank you very much.

Wenlong

2011/11/11 Dženan Zukić <dzenanz at gmail.com>

> From the docs <http://www.vtk.org/doc/nightly/html/classvtkTransform.html>I would say it concatenates. If you want to reset it just call Identity(),
> no need to delete.
>
> On Thu, Nov 10, 2011 at 18:20, Wenlong Wang <scc.wwl at gmail.com> wrote:
>
>> Dear all,
>>
>> I'm using vtkTransform to transform my actor. I have a question on this.
>>
>> If I do multiple transformation with the same vtkTransform object, would
>> these transformation concatenate? For example, if I translate my actor as
>> transform->Translate(10, 0), and then scale it again
>> transform->Translate(20, 0). Would the result actor be moved on X direction
>> by 30? What if the same situation happens in scale and rotate?
>>
>> If it does concatenate, and I don't want it to be concatenate, should I
>> delete the transform object and generate another one instead?
>>
>> Thank you very much.
>>
>> Best wishes
>> Long
>>
>> _______________________________________________
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111111/060d4d42/attachment.htm>


More information about the vtkusers mailing list