How can I draw normal vectors of a centerline in the 3D slicer?

You can easily draw the tangent, normal, and binormal vector directions for a curve. We normally use this for testing. How to get this feature:

  1. Open the Python console in Slicer (Ctrl+3)
  2. Copy-paste the vector drawing code from into the Python console
  3. Draw normals for the first curve in the scene by copy-pasting this code into the Python console:
curveNode = slicer.mrmlScene.GetFirstNodeByClass("vtkMRMLMarkupsCurveNode")
addCoordinateSystemUpdater(createCoordinateSystemsModel(curveNode))