[vtkusers] vtkAffineRepresentation2D transform to non-xy planes

Dean Inglis dean.inglis at sympatico.ca
Fri Apr 11 16:13:07 EDT 2008


Hi,

Im using vtkAffineWidget to transform some
2D contours, currently in the x-y plane. I have
a callback for the widget's end interaction event
that takes the contour (vtkPolyData) and transforms
it with vtkTransformPolyDataFilter using the 
transform supplied by the widget's representation.
The representation internally only rotates around the z-axis
and scales in the x-y plane.
Can someone supply some tcl/py/c++ code (or pseudocode) to
transform the transform to work in the x-z and y-z planes?

Dean




More information about the vtkusers mailing list