diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-06 05:01:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-06 05:06:49 +0300 |
commit | 900c562b71b6efcf68d649cb639cc8bc246d5899 (patch) | |
tree | 2081430f831481789bea1a48ac4f39113ee829b2 /source/blender/editors/mesh/editmesh_tools.c | |
parent | d805a4a5efd53de234302d22fc0917db53b50e2b (diff) |
Cleanup: rename fast-heap -> heap-simple
In general prefer API names don't start with adjectives
since it causes grouping of unrelated API's for completion.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 9fe4ea46913..b7ab1e159f7 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -7818,7 +7818,7 @@ static int edbm_average_normals_exec(bContext *C, wmOperator *op) BM_normals_loops_edges_tag(bm, true); - FastHeap *loop_weight = BLI_fastheap_new(); + HeapSimple *loop_weight = BLI_heapsimple_new(); BM_ITER_MESH(f, &fiter, bm, BM_FACES_OF_MESH) { l_curr = l_first = BM_FACE_FIRST_LOOP(f); @@ -7858,7 +7858,7 @@ static int edbm_average_normals_exec(bContext *C, wmOperator *op) val = 1.0f / BM_loop_calc_face_angle(lfan_pivot); } - BLI_fastheap_insert(loop_weight, val, lfan_pivot); + BLI_heapsimple_insert(loop_weight, val, lfan_pivot); if (!BM_elem_flag_test(e_next, BM_ELEM_TAG) || (e_next == e_org)) { break; @@ -7868,15 +7868,15 @@ static int edbm_average_normals_exec(bContext *C, wmOperator *op) BLI_SMALLSTACK_DECLARE(loops, BMLoop *); float wnor[3], avg_normal[3] = { 0.0f }, count = 0; - float val = BLI_fastheap_top_value(loop_weight); + float val = BLI_heapsimple_top_value(loop_weight); - while (!BLI_fastheap_is_empty(loop_weight)) { - const float cur_val = BLI_fastheap_top_value(loop_weight); + while (!BLI_heapsimple_is_empty(loop_weight)) { + const float cur_val = BLI_heapsimple_top_value(loop_weight); if (!compare_ff(val, cur_val, threshold)) { count++; val = cur_val; } - l = BLI_fastheap_pop_min(loop_weight); + l = BLI_heapsimple_pop_min(loop_weight); BLI_SMALLSTACK_PUSH(loops, l); const float n_weight = pow(weight, count); @@ -7907,7 +7907,7 @@ static int edbm_average_normals_exec(bContext *C, wmOperator *op) } while ((l_curr = l_curr->next) != l_first); } - BLI_fastheap_free(loop_weight, NULL); + BLI_heapsimple_free(loop_weight, NULL); EDBM_update_generic(em, true, false); return OPERATOR_FINISHED; |