Is there any hint about the algorithm used in Curve Proximity Component? I found that this component output strange result in some situations. I want to know why the situation happen, and what I should be careful when I use this.
The situation:
There are two curves, one of which is a circle and the other is a line. The line length is a variable. When I changed the line length from 0 to 2000 gradually, the outputs of Curve Proximity take strange points in certain ranges.
I hope you will be able to provide the information. Thank you,
Ren
but for two curves which are not intersecting, this looks like very wrong behavior (white dots should indicate the curves reciprocal closest point)
…am I completely crazy?
[edit: sorry, I forgot to mention you can reproduce this very same behavior by setting the seams to 0.0 in my previous definition, and also see the results being inconsistent while varying the seams slider: for some seams values it indeed works as it should, for other values it doesn’t…]
Thank you for your information. The Rhino Common method works well! It seems more certain to use this method.
As a trial, I changed the value of tolerance of GetDistancesBetweenCurves method into 0.01, 0.1, 1, 10, 100 and watched if the result got to be similar to the case of Curve Proximity, which turned to be no. So the tolerance is not the main reason of this problem. The algorithm may be problematic…?
I suppose that the GH component uses another algorithm for some reasons.
The person who probably knows more is the creator of GH. I don’t tag him here, since it is not that important to me. By the way it’s a while since I saw him here