vtkTubeFilter vary radius

Hello,

I need to get the following behavior.

I have a list of points with x,y, and z coordinates and radius. I want to use a vtkKochanekSpline and vtkTubeFilter with the SetVaryRadiusToVaryRadiusByAbsoluteScalar option.

I checked this example https://kitware.github.io/vtk-examples/site/Cxx/VisualizationAlgorithms/TubesFromSplines/, but it uses just two values. My issue is to calculate the t value.

Any help on this @LucasGandel ?

Thank you.

Hi Michel,

I’m not sure I fully understand what you are trying to do, so let me expose what I think you want to do. You have a scalar array of some value named t and you want to scale your spline with this t? I think that you can do that by setting SetInputArrayToProcess to t, and turning on VaryRadiusToVaryRadiusByScalar on.