Hello all:
I have a (3D) B-spline that I wish to walk along in even steps and extract information at each step.
i.e.. walk along a 1500mm path and extract XYZ at each mm.
I have found that my step lengths are not uniform even through the points I am evaluating at uniform intervals.
In the attached code is the definition of a typical path.
The overall length of this path is ~1875 mm
Therefore my uniform evaluation step size is 1 / 1875 ~ 0.00053
When I evaluate the distance between two points that are the same evaluation distance apart I get different distances at one then of the spline than the other.
(Where I am evaluating these test points are in sections of the spline that are quite straight.)
So, when I run the attached code I get:
Overall Length: 1874.6444
Uniform Evaluation step size: 0.0005334344983524545
Distance along spline at beginning = : 1.6960869944763601
Distance along spline at end = : 0.6328986978217062
I expect both distances to be very nearly 1.000.
I also expect the distances to be the same.
What am I doing wrong?
Thanks