diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-19 16:46:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-19 16:48:51 +0300 |
commit | 109cbdf2e1b609e93270100239906a8e17c64ab5 (patch) | |
tree | 821504319da91e5a5dea1ebaf64978560468288e /source/blender/editors/mesh/editmesh_utils.c | |
parent | e8777a729013d04dcb854b0b9f327e9b90191747 (diff) |
Cleanup: use BLI_kdtree_3d prefix
Use prefix now there isn't only the 3d version.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_utils.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c index ed6ab38e5ab..68a2f382278 100644 --- a/source/blender/editors/mesh/editmesh_utils.c +++ b/source/blender/editors/mesh/editmesh_utils.c @@ -1006,7 +1006,7 @@ void EDBM_verts_mirror_cache_begin_ex( const float maxdist_sq = SQUARE(maxdist); /* one or the other is used depending if topo is enabled */ - KDTree *tree = NULL; + KDTree_3d *tree = NULL; MirrTopoStore_t mesh_topo_store = {NULL, -1, -1, -1}; BM_mesh_elem_table_ensure(bm, BM_VERT); @@ -1032,11 +1032,11 @@ void EDBM_verts_mirror_cache_begin_ex( ED_mesh_mirrtopo_init(me, NULL, &mesh_topo_store, true); } else { - tree = BLI_kdtree_new(bm->totvert); + tree = BLI_kdtree_3d_new(bm->totvert); BM_ITER_MESH_INDEX (v, &iter, bm, BM_VERTS_OF_MESH, i) { - BLI_kdtree_insert(tree, i, v->co); + BLI_kdtree_3d_insert(tree, i, v->co); } - BLI_kdtree_balance(tree); + BLI_kdtree_3d_balance(tree); } #define VERT_INTPTR(_v, _i) r_index ? &r_index[_i] : BM_ELEM_CD_GET_VOID_P(_v, cd_vmirr_offset); @@ -1062,7 +1062,7 @@ void EDBM_verts_mirror_cache_begin_ex( co[axis] *= -1.0f; v_mirr = NULL; - i_mirr = BLI_kdtree_find_nearest(tree, co, NULL); + i_mirr = BLI_kdtree_3d_find_nearest(tree, co, NULL); if (i_mirr != -1) { BMVert *v_test = BM_vert_at_index(bm, i_mirr); if (len_squared_v3v3(co, v_test->co) < maxdist_sq) { @@ -1090,7 +1090,7 @@ void EDBM_verts_mirror_cache_begin_ex( ED_mesh_mirrtopo_free(&mesh_topo_store); } else { - BLI_kdtree_free(tree); + BLI_kdtree_3d_free(tree); } } |