python version of the Frenet frame

Dear VTK experts,

I know there is a C++ implementation of the Frenet frame and a demo is available in the following link:

But I can’t seem to find a version implemented in python.

I would like to use it for a personal project and would like to know if I should implement it on my own or if I can use an already existing implementation.

Looking forward to read your answers,

Best regards,


I should add I have spent some time looking for it online.


I don’t see a Python version, but the transformation from C++ is pretty straightforward.

Dear Cory Quammen,

Alright, thank you for your prompt reply.

Best regards,


The math is trivial, indeed, but just in case you don’t want to spend time with reimplementing it in Python (or performance is critical), you can access the Python-wrapped vtkFrenetSerretFrame and vtkSplineDrivenImageSlicer classes in the Python distribution bundled with 3D Slicer (recent Slicer Preview Releases). In Slicer you can also display and interactively edit curves, generate curved planar reformatted volumes (e.g., panoramic X-ray from CBCT), straighten volumes, etc. See some more information in this post

Dear Andras Lasso,

Thank you for your feedback.

Best regards,