Extract Points from vtkParametricSpline

Dear All,

Does anyone know how I can extract all points calculated in the vtkParametric spline? I only seem to be able to return the control points I inserted as input.

Greatly appreciate any help.

Best Regards,

Why wouldn’t you just create a small loop to evaluate the parametric coordinate u from [0,1] ? Using void Evaluate(double u[3], double Pt[3], double Du[9]) override;

1 Like

Thanks! It worked well

Great. I wondered if the splines should have a GetLength() method so that it’s easier to figure out what u-spacing to use… I might add that at some point in the future. It’s tricky though because obviously uniform u spacing does not translate into regular world point spacing.