vtkSplineWidget is unable to set open loop such as ClosedOff() or SetClosed(true)

Hi everyone. I use vtk.js version 23.0.0 (the latest) and vtkSplineWidget.js has no method such as ClosedOff() or SetClosed(true) to create only straight line without continuous loop. Is there any other ways to create an open spline? Thanks for your help.

Unfortunately spline functions have not been implemented for the “open” case.
See KochanekSpline1D and CardinalSpline1D.

If you implement those (look at the C++ implementation here and here), I would be happy to integrate it into vtkSplineWidget.


1 Like