[vtkusers] 3D-position of vtkImageReslice

Henning Meyer tutmann at gmail.com
Fri Mar 26 21:51:06 EDT 2010


Thanks a lot! That works like charm.
Just one issue:
When I do
double p[3] = {1,2,3};
renderer->SetDisplayPoint(p);
renderer->DisplayToWorld();
renderer->GetWorldPoint(p);

That only seems to work sometimes. However this works:
renderer->SetDisplayPoint(p);
renderer->DisplayToView();
renderer->GetViewPoint(p);
renderer->ViewToWorld(p);

Has anybody a good explanation?



More information about the vtkusers mailing list