Kangaroo example CustomGoal.gh gives strange result

@DanielPiker, when I run the CustomGoal.gh example definition, which places a cloud of random points OnSurf, it uses the method TargetBrep.ClosestPoint(pt).

But the result seems strange to me. The points doesn’t seem to actually land on the closest point, instead many of the points are lumped together in the corners of the surface (it is possible that these green lines are not paired correctly with the point sets, but nevertheless, the points does not seem to land at nearest points on the surface).

How can this be?

CustomGoal_RIL.ghx (179.6 KB)

// Rolf