[vtkusers] SetCutPlane not working in vtkImageResliceMapper

David Gobbi david.gobbi at gmail.com
Wed Mar 27 20:19:00 EDT 2013


On Wed, Mar 27, 2013 at 6:02 PM, Debjit Ghosh <dghosh at chla.usc.edu> wrote:
> Hi David,
>
> I have been able to perfectly slice the volume using the 6DOF sensor using
> the above algorithm. However, the volume in the vtkImageSlice needed to be
> rotated based on different cardiac windows. When I rotated the vtkImageSlice
> objected using RotateX, RotateY, RotateZ, I faced this new problem where in
> the slice being rendered rotates around a point on the screen.
>
> Until now I was setting the view up vector to [0,0,-1] and no matter how I
> sliced the volume, the image was always centered on to the screen. (In order
> to position my slice plane I was setting the Position, Focal Point and View
> Up of the camera as you had suggested)
>
> I can get the orientation of the vtkImageSlice object but don't know how to
> set the view up vector parallel to it.
>
> I had tried doing so by using rotation matrices but that isn't having the
> desired effect.

Isn't this just a matter of projecting a vector onto the plane?
Choose any anatomically relevant vector, project it onto the slice
plane, and use it as your view up vector.

 - David



More information about the vtkusers mailing list