diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-06 01:49:30 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-06 01:56:03 +0300 |
commit | 9fbf7f1180501fc868a38dccecfbc71f6747b4e9 (patch) | |
tree | aea6a0ecd2c920751ce8ee0a429de0210650b6b3 /source/blender/blenkernel/BKE_bvhutils.h | |
parent | 684b95804e8fe8a78488b96b02285b2854809ff9 (diff) |
BVH Utils: Remove '_allocated' members from 'BVHTreeFromMesh'
The parameters indicating whether it is allocated are always `false` and
it is up to the caller to free them.
Also clang-format was triggered.
Diffstat (limited to 'source/blender/blenkernel/BKE_bvhutils.h')
-rw-r--r-- | source/blender/blenkernel/BKE_bvhutils.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/source/blender/blenkernel/BKE_bvhutils.h b/source/blender/blenkernel/BKE_bvhutils.h index ec017dec2e4..c957465a654 100644 --- a/source/blender/blenkernel/BKE_bvhutils.h +++ b/source/blender/blenkernel/BKE_bvhutils.h @@ -56,15 +56,10 @@ typedef struct BVHTreeFromMesh { /* Vertex array, so that callbacks have instant access to data. */ const struct MVert *vert; const float (*vert_normals)[3]; - const struct MEdge *edge; /* only used for #BVHTreeFromMeshEdges */ + const struct MEdge *edge; const struct MFace *face; const struct MLoop *loop; const struct MLoopTri *looptri; - bool vert_allocated; - bool edge_allocated; - bool face_allocated; - bool loop_allocated; - bool looptri_allocated; /* Private data */ bool cached; @@ -125,7 +120,6 @@ BVHTree *bvhtree_from_editmesh_verts_ex(BVHTreeFromEditMesh *data, BVHTree *bvhtree_from_mesh_verts_ex(struct BVHTreeFromMesh *data, const struct MVert *vert, int verts_num, - bool vert_allocated, const BLI_bitmap *verts_mask, int verts_num_active, float epsilon, @@ -158,10 +152,8 @@ BVHTree *bvhtree_from_editmesh_edges_ex(BVHTreeFromEditMesh *data, */ BVHTree *bvhtree_from_mesh_edges_ex(struct BVHTreeFromMesh *data, const struct MVert *vert, - bool vert_allocated, const struct MEdge *edge, int edges_num, - bool edge_allocated, const BLI_bitmap *edges_mask, int edges_num_active, float epsilon, @@ -180,10 +172,8 @@ BVHTree *bvhtree_from_mesh_edges_ex(struct BVHTreeFromMesh *data, */ BVHTree *bvhtree_from_mesh_faces_ex(struct BVHTreeFromMesh *data, const struct MVert *vert, - bool vert_allocated, const struct MFace *face, int numFaces, - bool face_allocated, const BLI_bitmap *faces_mask, int faces_num_active, float epsilon, @@ -213,12 +203,9 @@ BVHTree *bvhtree_from_editmesh_looptri_ex(BVHTreeFromEditMesh *data, */ BVHTree *bvhtree_from_mesh_looptri_ex(struct BVHTreeFromMesh *data, const struct MVert *vert, - bool vert_allocated, const struct MLoop *mloop, - bool loop_allocated, const struct MLoopTri *looptri, int looptri_num, - bool looptri_allocated, const BLI_bitmap *mask, int looptri_num_active, float epsilon, |