Interpolating points and direction along a path in 3D space

Hi,

This is my first go with discourse, so I hope I am using this correctly. If not feel free to re-file this post.

I have a series of points on a path [(x1,y1,z1)…(xN,yN,zN)] and a function at the points [f1,…,fN] which is point-wise increasing but not necessarily by a fixed amount. I need to evaluate the path position and orientation at arbitrary values of f.

My first guess is that vtkParametricSpline is the way to go, but can this compute the orientation as well as the position? Or is there another tool I should be thinking about?

Thanks

Kit

Frenet-Serret frame gives you both interpolated position and orientation along a curve - see implementation here: https://www.vtkjournal.org/browse/publication/838

Thanks, will take a look.

The FrenetSerretFrame is implemented as a Remote Module in VTK. To gain access to the class,

  1. For VTK 8.3 and lower,
    Module_SplineDrivenImageSlicer:BOOL=ON

  2. For VTK HEAD,
    VTK_MODULE_ENABLE_VTK_SplineDrivenImageSlicer:STRING=WANT

There are two examples in the VTKExamples Project:

FrenetSerretFrame

and

FrenetSerretFrameDemo

Enjoy,

Bill