Blender V5.3
bmesh_iterators.cc File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_IMMUTABLE_ASSERT

Functions

int blender::BM_iter_mesh_count (const char itype, BMesh *bm)
void * blender::BM_iter_at_index (BMesh *bm, const char itype, void *data, int index)
int blender::BM_iter_as_array (BMesh *bm, char itype, void *data, void **array, int len)
 Iterator as Array.
int blender::BMO_iter_as_array (BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, char restrictmask, void **array, int len)
 Operator Iterator as Array.
void * blender::BM_iter_as_arrayN (BMesh *bm, char itype, void *data, int *r_len, void **stack_array, int stack_array_size) ATTR_WARN_UNUSED_RESULT
 Iterator as Array.
void * blender::BMO_iter_as_arrayN (BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, const char restrictmask, int *r_len, void **stack_array, int stack_array_size)
int blender::BM_iter_mesh_bitmap_from_filter (const char itype, BMesh *bm, MutableBitSpan bitmap, bool(*test_fn)(BMElem *, void *user_data), void *user_data)
int blender::BM_iter_mesh_bitmap_from_filter_tessface (BMesh *bm, MutableBitSpan bitmap, bool(*test_fn)(BMFace *, void *user_data), void *user_data)
int blender::BM_iter_elem_count_flag (char itype, void *data, char hflag, bool value)
 Elem Iter Flag Count.
int blender::BMO_iter_elem_count_flag (BMesh *bm, char itype, void *data, short oflag, bool value)
 Elem Iter Tool Flag Count.
int blender::BM_iter_mesh_count_flag (char itype, BMesh *bm, char hflag, bool value)
 Mesh Iter Flag Count.
void blender::bmiter__elem_of_mesh_begin (BMIter__elem_of_mesh *iter)
void * blender::bmiter__elem_of_mesh_step (BMIter__elem_of_mesh *iter)
void blender::bmiter__edge_of_vert_begin (BMIter__edge_of_vert *iter)
void * blender::bmiter__edge_of_vert_step (BMIter__edge_of_vert *iter)
void blender::bmiter__face_of_vert_begin (BMIter__face_of_vert *iter)
void * blender::bmiter__face_of_vert_step (BMIter__face_of_vert *iter)
void blender::bmiter__loop_of_vert_begin (BMIter__loop_of_vert *iter)
void * blender::bmiter__loop_of_vert_step (BMIter__loop_of_vert *iter)
void blender::bmiter__loop_of_edge_begin (BMIter__loop_of_edge *iter)
void * blender::bmiter__loop_of_edge_step (BMIter__loop_of_edge *iter)
void blender::bmiter__loop_of_loop_begin (BMIter__loop_of_loop *iter)
void * blender::bmiter__loop_of_loop_step (BMIter__loop_of_loop *iter)
void blender::bmiter__face_of_edge_begin (BMIter__face_of_edge *iter)
void * blender::bmiter__face_of_edge_step (BMIter__face_of_edge *iter)
void blender::bmiter__vert_of_edge_begin (BMIter__vert_of_edge *iter)
void * blender::bmiter__vert_of_edge_step (BMIter__vert_of_edge *iter)
void blender::bmiter__vert_of_face_begin (BMIter__vert_of_face *iter)
void * blender::bmiter__vert_of_face_step (BMIter__vert_of_face *iter)
void blender::bmiter__edge_of_face_begin (BMIter__edge_of_face *iter)
void * blender::bmiter__edge_of_face_step (BMIter__edge_of_face *iter)
void blender::bmiter__loop_of_face_begin (BMIter__loop_of_face *iter)
void * blender::bmiter__loop_of_face_step (BMIter__loop_of_face *iter)
void blender::BM_iter_parallel (BMesh *bm, const char itype, TaskParallelMempoolFunc func, void *userdata, const TaskParallelSettings *settings)
 Parallel (threaded) iterator, only available for most basic iteration-types (verts/edges/faces of mesh).

Variables

const char blender::bm_iter_itype_htype_map [BM_ITYPE_MAX]

Detailed Description

Functions to abstract looping over bmesh data structures.

See: bmesh_iterators_inlin.c too, some functions are here for speed reasons.

Definition in file bmesh_iterators.cc.

Macro Definition Documentation

◆ USE_IMMUTABLE_ASSERT

#define USE_IMMUTABLE_ASSERT

Notes on iterator implementation:

Iterators keep track of the next element in a sequence. When a step() callback is invoked the current value of 'next' is stored to be returned later and the next variable is incremented.

When the end of a sequence is reached, next should always equal nullptr

The 'bmiter__' prefix is used because these are used in bmesh_iterators_inine.c but should otherwise be seen as private.

Definition at line 364 of file bmesh_iterators.cc.