New function for BLI_kdopbvh: `BLI_bvhtree_find_nearest_projected`.
authorGermano <germano.costa@ig.com.br>
Mon, 14 May 2018 19:00:13 +0000 (16:00 -0300)
committerGermano <germano.costa@ig.com.br>
Mon, 14 May 2018 19:01:36 +0000 (16:01 -0300)
commit8cbf402eb61bde42c63963eb092bf6722516280b
tree680408e89e357be265f7e7f2f06bd288b28ef0a2
parent70a60061e59fde7bb0e9cf9585365238b8c1d58f
New function for BLI_kdopbvh: `BLI_bvhtree_find_nearest_projected`.

This patch does not make any difference for a user's POV. But it is a step for adding the occlusion test for snapping functions.
This new function finds the node(aabb) whose projection is closest to a screen coordinate.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Tags: #bf_blender_2.8

Differential Revision: https://developer.blender.org/D3180
source/blender/blenlib/BLI_kdopbvh.h
source/blender/blenlib/BLI_math_geom.h
source/blender/blenlib/intern/BLI_kdopbvh.c
source/blender/blenlib/intern/math_geom.c