89 BMesh *
bm,
const char *location,
const char *func,
const char *msg_a,
const char *msg_b);
110 BLI_assert((index >= 0) && (index < bm->totvert));
112 return bm->vtable[index];
116 BLI_assert((index >= 0) && (index < bm->totedge));
118 return bm->etable[index];
122 BLI_assert((index >= 0) && (index < bm->totface));
124 return bm->ftable[index];
185#define BMALLOC_TEMPLATE_FROM_BM(bm) \
186 {(CHECK_TYPE_INLINE(bm, BMesh *), (bm)->totvert), (bm)->totedge, (bm)->totloop, (bm)->totface}
188#define _VA_BMALLOC_TEMPLATE_FROM_ME_1(me) \
190 (CHECK_TYPE_INLINE(me, Mesh *), (me)->verts_num), \
195#define _VA_BMALLOC_TEMPLATE_FROM_ME_2(me_a, me_b) \
197 (CHECK_TYPE_INLINE(me_a, Mesh *), \
198 CHECK_TYPE_INLINE(me_b, Mesh *), \
199 (me_a)->verts_num + (me_b)->verts_num), \
200 (me_a)->edges_num + (me_b)->edges_num, \
201 (me_a)->corners_num + (me_b)->corners_num, \
202 (me_a)->faces_num + (me_b)->faces_num, \
204#define BMALLOC_TEMPLATE_FROM_ME(...) \
205 VA_NARGS_CALL_OVERLOAD(_VA_BMALLOC_TEMPLATE_FROM_ME_, __VA_ARGS__)
const BMAllocTemplate bm_mesh_allocsize_default
const BMAllocTemplate bm_mesh_chunksize_default
void BM_mesh_elem_toolflags_clear(BMesh *bm)
void BM_mesh_elem_index_ensure_ex(BMesh *bm, char htype, int elem_offset[4])
blender::Array< blender::float3 > BM_mesh_vert_coords_alloc(BMesh *bm)
BLI_INLINE BMEdge * BM_edge_at_index(BMesh *bm, const int index)
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_clear(BMesh *bm)
BMesh Clear Mesh.
BMEdge * BM_edge_at_index_find(BMesh *bm, int index)
void BM_mesh_elem_table_free(BMesh *bm, char htype)
BMVert * BM_vert_at_index_find_or_table(BMesh *bm, int index)
void BM_mesh_vert_normals_get(BMesh *bm, blender::MutableSpan< blender::float3 > normals)
void bmesh_edit_begin(BMesh *bm, BMOpTypeFlag type_flag)
BMesh Begin Edit.
void BM_mesh_rebuild(BMesh *bm, const BMeshCreateParams *params, BLI_mempool *vpool, BLI_mempool *epool, BLI_mempool *lpool, BLI_mempool *fpool)
void BM_mesh_elem_toolflags_ensure(BMesh *bm)
void BM_mesh_vert_coords_apply(BMesh *bm, blender::Span< blender::float3 > vert_coords)
BMLoop * BM_loop_at_index_find(BMesh *bm, int index)
void BM_mesh_elem_index_ensure(BMesh *bm, char htype)
BLI_INLINE BMVert * BM_vert_at_index(BMesh *bm, const int index)
void BM_mesh_vert_coords_get(BMesh *bm, blender::MutableSpan< blender::float3 > positions)
void BM_mesh_free(BMesh *bm)
BMesh Free Mesh.
BLI_INLINE BMFace * BM_face_at_index(BMesh *bm, const int index)
void BM_mesh_elem_table_ensure(BMesh *bm, char htype)
BMEdge * BM_edge_at_index_find_or_table(BMesh *bm, int index)
void BM_mesh_elem_table_init(BMesh *bm, char htype)
void BM_mesh_elem_index_validate(BMesh *bm, const char *location, const char *func, const char *msg_a, const char *msg_b)
BMFace * BM_face_at_index_find(BMesh *bm, int index)
BMFace * BM_face_at_index_find_or_table(BMesh *bm, int index)
void bmesh_edit_end(BMesh *bm, BMOpTypeFlag type_flag)
BMesh End Edit.
bool BM_mesh_elem_table_check(BMesh *bm)
int BM_mesh_elem_count(BMesh *bm, char htype)
void BM_mesh_vert_coords_apply_with_mat4(BMesh *bm, blender::Span< blender::float3 > vert_coords, const blender::float4x4 &transform)
BMesh * BM_mesh_create(const BMAllocTemplate *allocsize, const BMeshCreateParams *params)
BMesh Make Mesh.
BMVert * BM_vert_at_index_find(BMesh *bm, int index)
SIMD_FORCE_INLINE btVector3 transform(const btVector3 &point) const
static float normals[][3]
MatBase< float, 4, 4 > float4x4