I have a set of points p1, p2, …, pn ,
and I want to define a curve that is go through all the point with continuity of order C^2
( first and second derivative is continuous).
The proposed solution is to construct a complex curve by piecing together several cubic curves:(spline curve). Each curve segment is a cubic polynomial with its own coefficient.
So in 2D for each segment the cubic polynomial function will be:
f_i(x)= a_i +b_i x + c_i x^2 + d_i x^3
Posing the following conditions we will be able to find the coefficient a,b,c,d
for each segment:
Now if we move to 3D, the best way is to define a parametric spline curve
f(t)=(x(t),y(t),z(t))
where x,y, and z is a function of the parameter t.
Then by assigning to each provided point p1, …, pn the t parameter t1, … tn Then we can find all the coefficient and the problem is solved.
Then my question is:
If I want to use a parametric spline curve f(t)=(x(t),y(t),z(t))
still I need to define the t1, … , tn values ? What will be the perfect way to define them?(chord length ?)
Otherwise I have to used an explicit function ( without adding this t parameter) like the way I use it in 2D example above:
y=h(x),
and z=g(x)
.
However explicit functions presentation has disadvantages one of them is infinite slope is difficult to represent?
So what do you suggest to do ?