1

I am looking at the example in XTK.

There are one renderer3D and three renderer2D instances.

How can I determine image coordinates by mouse click event (either on 3d renderer or on one of the 2d renderers)?

I need it for further labelmap modifications like in this code snippet.

UPD for 2d renderers I found xy2ijk method which does what I need:

var pos = slice2d.interactor.mousePosition;
var ijkPos = sliceY.xy2ijk(pos[0], pos[1]);

I still need to do the same thing for 3d renderers.

Community
  • 1
  • 1
Alexey Subach
  • 11,903
  • 7
  • 34
  • 60

0 Answers0