diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-03 20:33:52 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-03 20:33:52 +0300 |
commit | a9d264f5ca1d631e1151bff55fd8cb3c87193bce (patch) | |
tree | 9c70cb490d8056f7f54a117eac4bdcba7a2c3237 /source/blender/blenlib | |
parent | 20185a8681f15f3e4e129e064fbe9a150dc4c963 (diff) | |
parent | ac19483e632bd3e2388a6a0de2db753efe33a860 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_kdopbvh.h | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/BLI_kdopbvh.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_kdopbvh.h b/source/blender/blenlib/BLI_kdopbvh.h index db53035dc7b..c92f40c67bf 100644 --- a/source/blender/blenlib/BLI_kdopbvh.h +++ b/source/blender/blenlib/BLI_kdopbvh.h @@ -130,7 +130,7 @@ BVHTreeOverlap *BLI_bvhtree_overlap( BVHTree_OverlapCallback callback, void *userdata); int BLI_bvhtree_get_len(const BVHTree *tree); - +int BLI_bvhtree_get_tree_type(const BVHTree *tree); float BLI_bvhtree_get_epsilon(const BVHTree *tree); /* find nearest node to the given coordinates diff --git a/source/blender/blenlib/intern/BLI_kdopbvh.c b/source/blender/blenlib/intern/BLI_kdopbvh.c index 44ff78ea71a..027c6e084f5 100644 --- a/source/blender/blenlib/intern/BLI_kdopbvh.c +++ b/source/blender/blenlib/intern/BLI_kdopbvh.c @@ -1151,6 +1151,14 @@ int BLI_bvhtree_get_len(const BVHTree *tree) return tree->totleaf; } +/** + * Maximum number of children that a node can have. + */ +int BLI_bvhtree_get_tree_type(const BVHTree *tree) +{ + return tree->tree_type; +} + float BLI_bvhtree_get_epsilon(const BVHTree *tree) { return tree->epsilon; |