[vtkusers] PolyData Translation Problem
Jothybasu Selvaraj
jothybasu at gmail.com
Thu Oct 27 12:30:14 EDT 2011
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/ecc165d5/attachment.htm>
More information about the vtkusers
mailing list