diff options
Diffstat (limited to 'source/blender/blenlib/intern/BLI_kdopbvh.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_kdopbvh.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_kdopbvh.c b/source/blender/blenlib/intern/BLI_kdopbvh.c index bba3fdb37bc..f0fc2c70708 100644 --- a/source/blender/blenlib/intern/BLI_kdopbvh.c +++ b/source/blender/blenlib/intern/BLI_kdopbvh.c @@ -1114,6 +1114,14 @@ void BLI_bvhtree_update_tree(BVHTree *tree) for (; index >= root; index--) node_join(tree, *index); } +/** + * Number of times #BLI_bvhtree_insert has been called. + * mainly useful for asserts functions to check we added the correct number. + */ +int BLI_bvhtree_get_size(const BVHTree *tree) +{ + return tree->totleaf; +} float BLI_bvhtree_getepsilon(const BVHTree *tree) { |