diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-01 16:03:28 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-01 16:03:28 +0300 |
commit | 522bee3fc838c83b377d0e05fef8299a29ae5a16 (patch) | |
tree | 6bfd84127fd6da9921b7d3e4136381e208900483 /source/blender/blenkernel/BKE_bvhutils.h | |
parent | 2e98524b58a53f0d546e5f1e7d549d2f45815055 (diff) |
Refactoring: bvhutils: Use a function that gets the bvhtree through an identifier type.
Reviewed By: @campbellbarton
Differential Revision: https://developer.blender.org/D3192
Diffstat (limited to 'source/blender/blenkernel/BKE_bvhutils.h')
-rw-r--r-- | source/blender/blenkernel/BKE_bvhutils.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/blenkernel/BKE_bvhutils.h b/source/blender/blenkernel/BKE_bvhutils.h index b3122f8adb9..33e88a6b8f8 100644 --- a/source/blender/blenkernel/BKE_bvhutils.h +++ b/source/blender/blenkernel/BKE_bvhutils.h @@ -113,8 +113,6 @@ BVHTree *bvhtree_from_editmesh_verts_ex( const BLI_bitmap *mask, int verts_num_active, float epsilon, int tree_type, int axis); -BVHTree *bvhtree_from_mesh_verts( - struct BVHTreeFromMesh *data, struct DerivedMesh *mesh, float epsilon, int tree_type, int axis); BVHTree *bvhtree_from_mesh_verts_ex( struct BVHTreeFromMesh *data, const struct MVert *vert, const int numVerts, const bool vert_allocated, const BLI_bitmap *mask, int verts_num_active, @@ -138,9 +136,6 @@ BVHTree *bvhtree_from_mesh_edges_ex( const BLI_bitmap *edges_mask, int edges_num_active, float epsilon, int tree_type, int axis); -BVHTree *bvhtree_from_mesh_faces( - struct BVHTreeFromMesh *data, struct DerivedMesh *mesh, float epsilon, - int tree_type, int axis); BVHTree *bvhtree_from_mesh_faces_ex( struct BVHTreeFromMesh *data, const struct MVert *vert, const bool vert_allocated, @@ -166,6 +161,8 @@ BVHTree *bvhtree_from_mesh_looptri_ex( const BLI_bitmap *mask, int looptri_num_active, float epsilon, int tree_type, int axis); +BVHTree *bvhtree_from_mesh_get(struct BVHTreeFromMesh *data, struct DerivedMesh *mesh, int type); + /** * Frees data allocated by a call to bvhtree_from_mesh_*. */ |