I have a 3D mesh made of vertices and triangles. I know the position and smoothed normal of the vertices, and the flat normals of the triangles. I would like to calculate the curve segment passing through 2 given vertices, using only their positions and normals.
Right now, I'm using a Catmull Rom spline, but it needs 4 points to draw 1 curve segment, as shown in this picture of a sliced view of a simple mesh :
To draw the yellow curved segment between B and C, corresponding to the estimated curvature of the red edge, I have to use the positions of vertices A,B,C and D The other cyan segments are drawn using the same method.
I would like to compute each curved segment only using the data in the segment's vertices. Here it would be only using the positions and normals of B and C as input data to compute the yellow curved segment... And still keep an homogeneous overall shape when computing the curves of all segments
I'm not sure this curve is the right one to represent the simulated curvature shown by the smoothed normals of the mesh while rendering it with a simple 3D diffuse shading, therefore I would like to know which other type of curve could be a better match in this precise case. And maybe one more adapted to the constrain of using as input only the positions and normals of the two points.
Thanks ! :)
EDIT : The result using a Hermite spline as suggested by Fang : This is perfect for me. Thanks again :)