min distance problem

Started by Thomas., July 25, 2011, 09:33:58 AM

Previous topic - Next topic

Thomas.

I have problem with world.calcMinDistanceAndObject3D(...). I set the ignoreIfLarger to 50, but method returns minimal distance between 0 to 50 and about 120 to 220

EgonOlsen

I'm not 100% sure what the question is here...ignoreIfLarger is an optimization switch, not a hard bound. If at least one vertex of the polygon is within that range, the polygon might be processed. If the intersection point is farer away then, it's not ignored or something...that's not the point of that attribute. If you want that, you have to check the returned result yourself.

Thomas.