Fix for edge mesh BVH: The edge distance callback for leaf nodes was calculating...
authorLukas Toenne <lukas.toenne@googlemail.com>
Sat, 11 Jun 2011 14:08:46 +0000 (14:08 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Sat, 11 Jun 2011 14:08:46 +0000 (14:08 +0000)
commitfbd5b4eb535c06cc298b8f5ea98be9da087527a3
tree3024c697af660a5f0876f215758764e817e4b807
parente0dee9b41d2ecc6ef6062becd7ba84a1d3d3163e
Fix for edge mesh BVH: The edge distance callback for leaf nodes was calculating actual sqrt'ed distance, while needing squared distance to be compatible with bounding box checks. This also solves previous concerns about performance when using sqrt in the comparison callback.
source/blender/blenkernel/intern/bvhutils.c