Update: Thread where the component was created. Just adding it for navigation purposes.
Update: @piac, when you have time could you help me with this. On the above mentioned thread there’s a csharp component that I translated to python, for me they are the same but there’s some bug in my Python translation that causes this.
var maxDistPtA = curveA.PointAt(maxDistanceParameterA);
var maxDistPtB = curveB.PointAt(maxDistanceParameterB);
var minDistPtA = curveA.PointAt(minDistanceParameterA);
var minDistPtB = curveB.PointAt(minDistanceParameterB);
Or in words: you are taking a parameter referring to curve B which is called maxB and evaluate curve A with it, and vice versa. If you still have doubts, adjust your code as suggested in the previous post, they then produce identical results.