[vtkusers] PolyData Translation Problem

Wenlong Wang scc.wwl at gmail.com
Thu Oct 27 12:32:36 EDT 2011


Hi, Jothybasu,

Thank you very much for your reply.

No, I didn't use it in my app. Does that matter? If so, why the scale and
rotate functions works without vtkTransformFilter?

Wenlong

2011/10/27 Jothybasu Selvaraj <jothybasu at gmail.com>

> Are you using vtkPolyDataTransformFilter along with vtkTransform?
>
> Jothy
>
> On Thu, Oct 27, 2011 at 5:13 PM, Wenlong Wang <scc.wwl at gmail.com> wrote:
>
>> Hi everyone,
>>
>> I'm trying to scale, rotate and translate my polydata. My strategy is
>> using vtkTransform to do these operations one by one. The order is scale,
>> rotate and translate. I calculate the transform parameters and use
>> vtkTransform::Scale, ::RotateZ() and ::Translate() to define the
>> transformation. Then I pass this transformation to my camera by
>> vtkCamera::SetUserTransform(). After that, I do the visualization pipeline
>> again to show the new polydata object. And the visualization pipeline is
>> capsualted as an independent function.
>>
>> So far, the scale and rotate works well and the polydata changes as I
>> expected. However, as I start to translate it, it disappears! It doesn't
>> work even I put simple numbers as the input parameters.
>>
>> I tried to pass the transform to my actor and use
>> vtkActor::SetUserTransform to do it. But again, the scale and rotate works
>> well and translate failed.
>>
>> Can anyone give me some advice? I'll be extremely appreciate it!
>>
>> 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
>>
>>
>
>
> --
> Jothybasu K Selvaraj
> PhD Student
> University of Liverpool
> Liverpool,UK
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111027/a445aae4/attachment.htm>


More information about the vtkusers mailing list