diff options
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_iterators.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_iterators.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/source/blender/bmesh/intern/bmesh_iterators.c b/source/blender/bmesh/intern/bmesh_iterators.c index 8103ae1ee11..384715d74f7 100644 --- a/source/blender/bmesh/intern/bmesh_iterators.c +++ b/source/blender/bmesh/intern/bmesh_iterators.c @@ -104,50 +104,6 @@ int BM_iter_as_array(BMesh *bm, const char itype, void *data, void **array, cons return i; } -/** - * \brief Elem Iter Flag Count - * - * Counts how many flagged / unflagged items are found in this element. - */ -int BM_iter_elem_count_flag(const char itype, void *data, const char hflag, const short value) -{ - BMIter iter; - BMElem *ele; - int count = 0; - - BLI_assert(ELEM(value, TRUE, FALSE)); - - for (ele = BM_iter_new(&iter, NULL, itype, data); ele; ele = BM_iter_step(&iter)) { - if (BM_elem_flag_test_bool(ele, hflag) == value) { - count++; - } - } - - return count; -} - -/** - * \brief Mesh Iter Flag Count - * - * Counts how many flagged / unflagged items are found in this mesh. - */ -int BM_iter_mesh_count_flag(const char itype, BMesh *bm, const char hflag, const short value) -{ - BMIter iter; - BMElem *ele; - int count = 0; - - BLI_assert(ELEM(value, TRUE, FALSE)); - - for (ele = BM_iter_new(&iter, bm, itype, NULL); ele; ele = BM_iter_step(&iter)) { - if (BM_elem_flag_test_bool(ele, hflag) == value) { - count++; - } - } - - return count; -} - /** * \brief Init Iterator |