[vtkusers] Rotating around the center of an object

David Brayford dbrayford at gmail.com
Wed Jan 11 15:04:57 EST 2012


Hi,

I have a scene containing a 3D object and when I rotate the object
with vtkTransform it rotates around the center of the scene and not
the center of the object. In OpenGL I would apply the rotation to the
object within a pushMatrix and popMatrix, but not sure I can do this
in vtk.

However, I was wondering if I can set the rotation center of the
vtkTransform to that of the 3D object (which I know)?

Thanks
David



More information about the vtkusers mailing list