How to get the central point of 3 slice panel

image
the requirement is to get the central point’s layer number of a volume node , i can get the 3d focus point , but i don’t known how to get the 3 sliceview focus global position like the F-1 markups point in the picture above

If you use layout with more or less than 3 slices or if some slices are nearly parallel then an intersection point cannot be determined. Therefore, there is no Slicer core API for getting the 3D coordinates of the intersection point.

Instead, of getting a point coordinate, I would recommend to use markup points (you can activate point placement and ask the user to click on an image or in a 3D view) or use crosshair (you can set the crosshair position by holding down the Shift key while moving the mouse in a view).

If you really must use the slice intersections, then you can of course compute it for yourself, as it is done for example in SlicerHeart extension:

1 Like

thank you lassoan , it’s really help