Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_kdopbvh.h
| Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | |||||
| /* callback to range search query */ | /* callback to range search query */ | ||||
| typedef void (*BVHTree_RangeQuery)(void *userdata, int index, const float co[3], float dist_sq); | typedef void (*BVHTree_RangeQuery)(void *userdata, int index, const float co[3], float dist_sq); | ||||
| /* callback to find nearest projected */ | /* callback to find nearest projected */ | ||||
| typedef void (*BVHTree_NearestProjectedCallback)( | typedef void (*BVHTree_NearestProjectedCallback)( | ||||
| void *userdata, int index, | void *userdata, int index, | ||||
| const struct DistProjectedAABBPrecalc *precalc, | const struct DistProjectedAABBPrecalc *precalc, | ||||
| const float (*clip_plane)[4], const int clip_plane_len, | |||||
| BVHTreeNearest *nearest); | BVHTreeNearest *nearest); | ||||
| /* callbacks to BLI_bvhtree_walk_dfs */ | /* callbacks to BLI_bvhtree_walk_dfs */ | ||||
| /* return true to traverse into this nodes children, else skip. */ | /* return true to traverse into this nodes children, else skip. */ | ||||
| typedef bool (*BVHTree_WalkParentCallback)(const BVHTreeAxisRange *bounds, void *userdata); | typedef bool (*BVHTree_WalkParentCallback)(const BVHTreeAxisRange *bounds, void *userdata); | ||||
| /* return true to keep walking, else early-exit the search. */ | /* return true to keep walking, else early-exit the search. */ | ||||
| typedef bool (*BVHTree_WalkLeafCallback)(const BVHTreeAxisRange *bounds, int index, void *userdata); | typedef bool (*BVHTree_WalkLeafCallback)(const BVHTreeAxisRange *bounds, int index, void *userdata); | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||