[vtkusers] PolyData Translation Problem
Wenlong Wang
scc.wwl at gmail.com
Thu Oct 27 12:13:00 EDT 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111027/ba9e4e91/attachment.htm>
More information about the vtkusers
mailing list