Thanks for your previous reply. I’ve been working on recreating views surgeons expect and this has mostly been successful using existing Slicer functionality. Now I’m trying to implement visualizations that surgeons are not used to seeing in conventional procedures but are useful in navigated procedures.
Specifically, I would like to find out what’s the easiest way to display a dynamic trajectory (just a line) going from the tool tip (which is a changing linear transform) to a predefined target (which could be a model or markup fiducial). VisuaLine (https://www.slicer.org/wiki/Documentation/4.3/Modules/VisuaLine) seemed like it could do this but it’s not in Slicer 4.10, and as you mentioned PathExplorer is not being actively maintained. I could use PathExplorer to create a tool fiducial and a target fiducial and an annotation trajectory, and then transform the tool fiducial by the tracked tool’s transform, but the trajectory won’t update unless the transform is hardened. Is there a better way?
BreachWarning module in SlicerIGT module does exactly this. It shows a line that connects the tooltip to the target. It can display the distance value and also give sound and visual signal if the tool gets close to the target model.
Thanks! Not sure how I missed the BreachWarning module.
Is there a way to do the same thing with fiducials instead of models? The reason I’m asking is because I want to be able to visualize the trajectory to a point rather than the closest point on the model, which is what the breach warning module does. Additionally, I can’t seem to place a model intuitively/precisely like with a fiducial points. I can transform it and then view the transform node in 3D but this way it’s not easy to place the model exactly where I want on the image.
You can add a model with a single point or a very small sphere that is placed at the fiducial’s position. This example shows how to do it (you can remove the radius adjustment, and set a small fixed radius instead): https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Manipulating_objects_in_the_slice_viewer
Thanks. Also found the ‘Markups to Model’ module quite useful for generating cylindrical paths for planning screw insertions.