[vtkusers] Bump: 3D position of ImageReslice

Henning Meyer tutmann at gmail.com
Tue Jul 6 10:06:26 EDT 2010


Argh - found the solution.
as Xiaofeng pointed out earlier, after:
        vtkRenderer::GetWorldPoint( coord );
do:
        coord[2] = 0.0;
Now it works like charm.

Thank you!

2010/7/5 Henning Meyer <tutmann at gmail.com>:
> Hello again,
>
> I'm trying to get the 3D position of the mouse inside a
> vtkImageReslice in order to modify voxels under the cursor.
> The problem is, that the 3D position seems to be off in the Viewers direction.
> As a quick demo I modified on of the VTK Examples, download here:
> http://dl.dropbox.com/u/391496/ImageResliceProblem/demo.tbz
> If you press a key in the demo window, the app tries to color the
> voxel under the cursor black.
> But - as you'll see - a different (off in viewer direction) voxel is choosen.
>
> What is wrong here?
>
> Thank you very much!
>
> Henning
>



More information about the vtkusers mailing list