Creating a custom Annotation node in a Python scripted module

Yes it is standard curved planar reformatting. The functionality is already available in Slicer, it just not easy to figure out how. It is described in detail here:

So, you can find an example of positioning an object along a curve in Endoscopy module. I think this module uses the same method as I described above to constrain rotation around the curve direction vector. For vessels (and for any other significantly non-planar curve), I would use a Frenet-Serret frame (SplineDrivenImageSlicer/Filters/vtkFrenetSerretFrame.h at master · djelouze/SplineDrivenImageSlicer · GitHub) instead of a fixed constraining direction.

1 Like