Situation looks as follows:
The SDK I'm working with represents position on a spline as a 0-1 value. From that position I can get (x,y,z) coords of a point. I start with point A, let's say at 0.5 on the spline and some (xa,ya,za) position in space. I want to now move along the spline (so subtracting from that 0.5) until i get B (xb,yb,zb) so that the distance (A,B) is a given d. The difference between the spline position of A(0.5) and B(x) is the n I'm looking for. My naive approach was to get start = n/length_of_the_spline, set a new point at 0.5 - start and then in a subtract 0.001 from it, get the (x,y,z) position, measure the distance of that point from A and if it's more that d, try again until it is. This I think is a rather wasteful way of doing it.
Can anyone point me to some algorithm that could help me? I'm not able to get the parametric representation of the spline, so can't math out where a circle intersects the spline. What I can do is traverse the spline, get (x,y,z) coords and measure distances.
Here's what this is for (current python script inside) https://www.reddit.com/r/Cinema4D/comments/vyuyiu/chains_with_python/