84 BMesh *
bm,
const char *location,
const char *func,
const char *msg_a,
const char *msg_b);
105 BLI_assert((index >= 0) && (index < bm->totvert));
111 BLI_assert((index >= 0) && (index < bm->totedge));
117 BLI_assert((index >= 0) && (index < bm->totface));
180 #define BMALLOC_TEMPLATE_FROM_BM(bm) \
182 (CHECK_TYPE_INLINE(bm, BMesh *), (bm)->totvert), (bm)->totedge, (bm)->totloop, (bm)->totface \
185 #define _VA_BMALLOC_TEMPLATE_FROM_ME_1(me) \
187 (CHECK_TYPE_INLINE(me, Mesh *), (me)->totvert), (me)->totedge, (me)->totloop, (me)->totpoly, \
189 #define _VA_BMALLOC_TEMPLATE_FROM_ME_2(me_a, me_b) \
191 (CHECK_TYPE_INLINE(me_a, Mesh *), \
192 CHECK_TYPE_INLINE(me_b, Mesh *), \
193 (me_a)->totvert + (me_b)->totvert), \
194 (me_a)->totedge + (me_b)->totedge, (me_a)->totloop + (me_b)->totloop, \
195 (me_a)->totpoly + (me_b)->totpoly, \
197 #define BMALLOC_TEMPLATE_FROM_ME(...) \
198 VA_NARGS_CALL_OVERLOAD(_VA_BMALLOC_TEMPLATE_FROM_ME_, __VA_ARGS__)
205 const float (*vert_coords)[3],
206 const float mat[4][4]);
typedef float(TangentPoint)[2]
ATTR_WARN_UNUSED_RESULT BMesh * bm
void BM_mesh_elem_toolflags_clear(BMesh *bm)
void BM_mesh_vert_coords_apply_with_mat4(BMesh *bm, const float(*vert_coords)[3], const float mat[4][4])
void BM_mesh_elem_index_ensure_ex(BMesh *bm, char htype, int elem_offset[4])
const BMAllocTemplate bm_mesh_allocsize_default
void BM_mesh_toolflags_set(BMesh *bm, bool use_toolflags)
void BM_mesh_data_free(BMesh *bm)
BMesh Free Mesh Data.
void BM_mesh_remap(BMesh *bm, const uint *vert_idx, const uint *edge_idx, const uint *face_idx)
void BM_mesh_vert_coords_apply(BMesh *bm, const float(*vert_coords)[3])
void BM_mesh_clear(BMesh *bm)
BMesh Clear Mesh.
void BM_mesh_elem_table_free(BMesh *bm, char htype)
const BMAllocTemplate bm_mesh_chunksize_default
void bmesh_edit_begin(BMesh *bm, BMOpTypeFlag type_flag)
BMesh Begin Edit.
void BM_mesh_elem_toolflags_ensure(BMesh *bm)
void BM_mesh_rebuild(BMesh *bm, const struct BMeshCreateParams *params, struct BLI_mempool *vpool, struct BLI_mempool *epool, struct BLI_mempool *lpool, struct BLI_mempool *fpool)
void BM_mesh_elem_index_ensure(BMesh *bm, char htype)
BMVert * BM_vert_at_index_find(BMesh *bm, int index)
BMFace * BM_face_at_index_find_or_table(BMesh *bm, int index)
BLI_INLINE BMFace * BM_face_at_index(BMesh *bm, const int index)
BLI_INLINE BMEdge * BM_edge_at_index(BMesh *bm, const int index)
void BM_mesh_free(BMesh *bm)
BMesh Free Mesh.
void BM_mesh_elem_table_ensure(BMesh *bm, char htype)
void BM_mesh_elem_table_init(BMesh *bm, char htype)
BMesh * BM_mesh_create(const struct BMAllocTemplate *allocsize, const struct BMeshCreateParams *params)
BMesh Make Mesh.
float(* BM_mesh_vert_coords_alloc(BMesh *bm, int *r_vert_len))[3]
BMEdge * BM_edge_at_index_find(BMesh *bm, int index)
BMFace * BM_face_at_index_find(BMesh *bm, int index)
void BM_mesh_elem_index_validate(BMesh *bm, const char *location, const char *func, const char *msg_a, const char *msg_b)
void bmesh_edit_end(BMesh *bm, BMOpTypeFlag type_flag)
BMesh End Edit.
bool BM_mesh_elem_table_check(BMesh *bm)
BLI_INLINE BMVert * BM_vert_at_index(BMesh *bm, const int index)
struct BMAllocTemplate BMAllocTemplate
void BM_mesh_vert_coords_get(BMesh *bm, float(*vert_coords)[3])
int BM_mesh_elem_count(BMesh *bm, char htype)
BMVert * BM_vert_at_index_find_or_table(BMesh *bm, int index)
BMLoop * BM_loop_at_index_find(BMesh *bm, int index)
BMEdge * BM_edge_at_index_find_or_table(BMesh *bm, int index)
static int elem_offset(const SDNA *sdna, const char *type, const char *name, const SDNA_Struct *old)