[vtkusers] vtkParametricSpline and vtkParametricFunctionSource

Anja Ende anja.ende at googlemail.com
Fri Nov 10 04:41:24 EST 2006


Hi everyone,

I have a question about the usage of vtkParametricSpline and
vtkParametricSource. What I want to do is use Qt to draw a spline through
some selected points on my image. I think the combination of
vtkParametricSpline and vtkParametricFunctionSource can do what I want to
achieve.

Now, I acquire the control points coordinates through the mouse events and
these are integers. What I would like to do is calculate the spline using
these values. I noticed that the documentation for the vtkParametricSpline
mentions:
"This family of 1D splines is quaranteed to be parameterized in the interval
[0,1]. Attempting to evaluate outside this interval will cause the parameter
u to be clamped in the range [0,1]."

I was wondering if I could pass the screen coordinates as input points to
the spline or does everything has to be normalized between 0 and 1. I think
working with integers would be faster and I would like to avoid the
unnecessary conversions back and forth...

Thanks and cheers,

Anja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061110/d92f604a/attachment.htm>


More information about the vtkusers mailing list