How to get the triangle ID on 3D view (mesh) from mouse coordinates in slice view

Hi;

I want to know if is it possible to obtain the triangle ID (the closest one) when I click on a segmented area in 2D slice view? Can you give me some examples or classes to that in c++.

thank’s in advance

You can find a complete example in the script repository: https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Select_cells_of_a_model_using_markups_fiducial_points

1 Like