[vtkusers] Re:Rotate image data 180 degrees

Jose Luis Pina jlpina at ivo.cps.unizar.es
Wed Jun 4 12:07:54 EDT 2003


Hello Jim:

Try with vtkTransform, something like this:

..............................
vtkTransform aLabelTransform
   aLabelTransform RotateX $degreex
   aLabelTransform RotateY $degreey
   aLabelTransform RotateZ $degreez

vtkTransformPolyDataFilter labelTransform
   labelTransform SetTransform aLabelTransform
   labelTransform SetInput [yourfile GetOutput]

vtkPolyDataMapper labelMapper
   labelMapper SetInput [labelTransform GetOutput]
..............................

I hope this helps.

CPS.Universidad de Zaragoza. (Spain)
Jose Luis Pina Martinez
jlpina at ivo.cps.unizar.es 




More information about the vtkusers mailing list