I ran into the situation where the Curve Side component outputs a number other than 0 (coincident) for a midpoint of a curve.
In the image above, there is only a single curve in each branch, so its midpoint should result in a 0, but there are plenty of -1 or 1s.
So to actually resolve which curve is left or right facing, I have to combine the data from two curves and two Curve Side components, in the hope that the two components together don’t have a failure in the same data branch:
This method works for this particular input, but I can’t be certain that it will always work.
I just need to know which of the two offset curves is on the left or right relative to the other, but when the Curve Side component fails to output two different numbers, that’s not possible.
Curve side failure.gh (26.2 KB)
Curve side failure.3dm (56.9 KB)