I am currently running a group of components recursively. They process a given curve, extract its points and revalue them in one axis. I then use Interpolate Curve on those new points and use the end point and tangent of this new curve to generate the direction for the next curve.
The problem I am running into is that sometimes the curve loops back on itself past the designated endpoint. The loop is so tight that you can't tell that it is actually looped and it just looks like the curve extends past its endpoint. Other times Interpolate Curve generates the arc opposite the desired one. Since I am generating a tangent to this curve at the end point it can obviously cause problems for the direction of the next curve.
I have been taking care of the problem by changing the number of points used in the curve, but am finding that even high numbers of points will generate errors and it is seriously undermining my confidence in the solution. Attached are images of the outputs with the only variable changing is the number of points used to construct the curves.
Any recommendations or insights are welcome.
30 Points (good output)
62 Points (seriously no bueno)
63 Points (um, no thanks)
199 Points (good output)
200 Points (wth?)
Tags: