Blender V5.3
bmesh_mesh.hh File Reference

Go to the source code of this file.

Classes

struct  blender::BMeshCreateParams
struct  blender::BMAllocTemplate

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BMALLOC_TEMPLATE_FROM_BM(bm)
#define _VA_BMALLOC_TEMPLATE_FROM_ME_1(me)
#define _VA_BMALLOC_TEMPLATE_FROM_ME_2(me_a, me_b)
#define BMALLOC_TEMPLATE_FROM_ME(...)

Functions

void blender::BM_mesh_elem_toolflags_ensure (BMesh *bm)
void blender::BM_mesh_elem_toolflags_clear (BMesh *bm)
BMesh * blender::BM_mesh_create (const BMAllocTemplate *allocsize, const BMeshCreateParams *params)
 BMesh Make Mesh.
void blender::BM_mesh_free (BMesh *bm)
 BMesh Free Mesh.
void blender::BM_mesh_data_free (BMesh *bm)
 BMesh Free Mesh Data.
void blender::BM_mesh_clear (BMesh *bm)
 BMesh Clear Mesh.
void blender::bmesh_edit_begin (BMesh *bm, BMOpTypeFlag type_flag)
 BMesh Begin Edit.
void blender::bmesh_edit_end (BMesh *bm, BMOpTypeFlag type_flag)
 BMesh End Edit.
void blender::BM_mesh_elem_index_ensure_ex (BMesh *bm, const char htype, int elem_offset[4])
void blender::BM_mesh_elem_index_ensure (BMesh *bm, const char htype)
void blender::BM_mesh_elem_index_validate (BMesh *bm, const char *location, const char *func, const char *msg_a, const char *msg_b)
bool blender::BM_mesh_elem_table_check (BMesh *bm)
void blender::BM_mesh_toolflags_set (BMesh *bm, bool use_toolflags)
void blender::BM_mesh_elem_table_ensure (BMesh *bm, const char htype)
void blender::BM_mesh_elem_table_init (BMesh *bm, const char htype)
void blender::BM_mesh_elem_table_free (BMesh *bm, const char htype)
BLI_INLINE BMVert * blender::BM_vert_at_index (BMesh *bm, const int index)
BLI_INLINE BMEdge * blender::BM_edge_at_index (BMesh *bm, const int index)
BLI_INLINE BMFace * blender::BM_face_at_index (BMesh *bm, const int index)
BMVert * blender::BM_vert_at_index_find (BMesh *bm, const int index)
BMEdge * blender::BM_edge_at_index_find (BMesh *bm, const int index)
BMFace * blender::BM_face_at_index_find (BMesh *bm, const int index)
BMLoop * blender::BM_loop_at_index_find (BMesh *bm, const int index)
BMVert * blender::BM_vert_at_index_find_or_table (BMesh *bm, const int index)
BMEdge * blender::BM_edge_at_index_find_or_table (BMesh *bm, const int index)
BMFace * blender::BM_face_at_index_find_or_table (BMesh *bm, const int index)
int blender::BM_mesh_elem_count (BMesh *bm, const char htype)
void blender::BM_mesh_remap (BMesh *bm, const uint *vert_idx, const uint *edge_idx, const uint *face_idx)
void blender::BM_mesh_rebuild (BMesh *bm, const BMeshCreateParams *params, BLI_mempool *vpool_dst, BLI_mempool *epool_dst, BLI_mempool *lpool_dst, BLI_mempool *fpool_dst)
BMesh Coordinate Access
void blender::BM_mesh_vert_normals_get (BMesh *bm, MutableSpan< float3 > normals)
void blender::BM_mesh_vert_coords_get (const BMesh *bm, MutableSpan< float3 > positions)
Array< float3 > blender::BM_mesh_vert_coords_alloc (const BMesh *bm)
void blender::BM_mesh_vert_coords_apply (BMesh *bm, const Span< float3 > vert_coords)
void blender::BM_mesh_vert_coords_apply_with_mat4 (BMesh *bm, const Span< float3 > vert_coords, const float4x4 &transform)

Macro Definition Documentation

◆ _VA_BMALLOC_TEMPLATE_FROM_ME_1

#define _VA_BMALLOC_TEMPLATE_FROM_ME_1 ( me)
Value:
{ \
(CHECK_TYPE_INLINE(me, Mesh *), (me)->verts_num), \
(me)->edges_num, \
(me)->corners_num, \
(me)->faces_num, \
}
#define CHECK_TYPE_INLINE(val, type)

Definition at line 190 of file bmesh_mesh.hh.

◆ _VA_BMALLOC_TEMPLATE_FROM_ME_2

#define _VA_BMALLOC_TEMPLATE_FROM_ME_2 ( me_a,
me_b )
Value:
{ \
(CHECK_TYPE_INLINE(me_a, Mesh *), \
CHECK_TYPE_INLINE(me_b, Mesh *), \
(me_a)->verts_num + (me_b)->verts_num), \
(me_a)->edges_num + (me_b)->edges_num, \
(me_a)->corners_num + (me_b)->corners_num, \
(me_a)->faces_num + (me_b)->faces_num, \
}

Definition at line 197 of file bmesh_mesh.hh.

◆ BMALLOC_TEMPLATE_FROM_BM

#define BMALLOC_TEMPLATE_FROM_BM ( bm)
Value:
{(CHECK_TYPE_INLINE(bm, BMesh *), (bm)->totvert), (bm)->totedge, (bm)->totloop, (bm)->totface}

Definition at line 187 of file bmesh_mesh.hh.

Referenced by blender::BM_mesh_copy(), and blender::BM_mesh_toolflags_set().

◆ BMALLOC_TEMPLATE_FROM_ME