Blender V5.3
bmesh_core.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_enum_flags.hh"
#include "BLI_linklist_stack.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_utildefines_stack.hh"
#include "BLI_vector.hh"
#include "BKE_customdata.hh"
#include "BKE_mesh.hh"
#include "bmesh.hh"
#include "intern/bmesh_private.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define VERT_VISIT   _FLAG_WALK
#define EDGE_VISIT   _FLAG_WALK
#define LOOP_VISIT   _FLAG_WALK
#define EDGE_VISIT   _FLAG_WALK

Enumerations

enum  blender::BMeshElemErrorFlag {
  blender::IS_NULL = (1 << 0) , blender::IS_WRONG_TYPE = (1 << 1) , blender::IS_VERT_WRONG_EDGE_TYPE = (1 << 2) , blender::IS_EDGE_NULL_DISK_LINK = (1 << 3) ,
  blender::IS_EDGE_WRONG_LOOP_TYPE = (1 << 4) , blender::IS_EDGE_WRONG_FACE_TYPE = (1 << 5) , blender::IS_EDGE_NULL_RADIAL_LINK = (1 << 6) , blender::IS_EDGE_ZERO_FACE_LENGTH = (1 << 7) ,
  blender::IS_LOOP_WRONG_FACE_TYPE = (1 << 8) , blender::IS_LOOP_WRONG_EDGE_TYPE = (1 << 9) , blender::IS_LOOP_WRONG_VERT_TYPE = (1 << 10) , blender::IS_LOOP_VERT_NOT_IN_EDGE = (1 << 11) ,
  blender::IS_LOOP_NULL_CYCLE_LINK = (1 << 12) , blender::IS_LOOP_ZERO_FACE_LENGTH = (1 << 13) , blender::IS_LOOP_WRONG_FACE_LENGTH = (1 << 14) , blender::IS_LOOP_WRONG_RADIAL_LENGTH = (1 << 15) ,
  blender::IS_FACE_NULL_LOOP = (1 << 16) , blender::IS_FACE_WRONG_LOOP_FACE = (1 << 17) , blender::IS_FACE_NULL_EDGE = (1 << 18) , blender::IS_FACE_NULL_VERT = (1 << 19) ,
  blender::IS_FACE_LOOP_VERT_NOT_IN_EDGE = (1 << 20) , blender::IS_FACE_LOOP_WRONG_RADIAL_LENGTH = (1 << 21) , blender::IS_FACE_LOOP_WRONG_DISK_LENGTH = (1 << 22) , blender::IS_FACE_LOOP_DUPE_LOOP = (1 << 23) ,
  blender::IS_FACE_LOOP_DUPE_VERT = (1 << 24) , blender::IS_FACE_LOOP_DUPE_EDGE = (1 << 25) , blender::IS_FACE_WRONG_LENGTH = (1 << 26)
}

Functions

BMVert * blender::BM_vert_create (BMesh *bm, const float co[3], const BMVert *v_example, eBMCreateFlag create_flag)
 Main function for creating a new vertex.
BMEdge * blender::BM_edge_create (BMesh *bm, BMVert *v1, BMVert *v2, const BMEdge *e_example, eBMCreateFlag create_flag)
 Main function for creating a new edge.
static BMLoop * blender::bm_loop_create (BMesh *bm, BMVert *v, BMEdge *e, BMFace *f, const BMLoop *l_example, const eBMCreateFlag create_flag)
static BMLoop * blender::bm_face_boundary_add (BMesh *bm, BMFace *f, BMVert *startv, BMEdge *starte, const eBMCreateFlag create_flag)
static BMFace * blender::bm_face_copy_impl (BMesh *bm_dst, BMFace *f, const bool copy_verts, const bool copy_edges)
BMFace * blender::BM_face_copy (BMesh *bm_dst, const BMCustomDataCopyMap &cd_face_map, const BMCustomDataCopyMap &cd_loop_map, BMFace *f, const bool copy_verts, const bool copy_edges)
BMFace * blender::BM_face_copy (BMesh *bm_dst, BMFace *f, const bool copy_verts, const bool copy_edges)
BLI_INLINE BMFace * blender::bm_face_create__internal (BMesh *bm)
BMFace * blender::BM_face_create (BMesh *bm, BMVert *const *verts, BMEdge *const *edges, const int len, const BMFace *f_example, const eBMCreateFlag create_flag)
BMFace * blender::BM_face_create_verts (BMesh *bm, BMVert **vert_arr, const int len, const BMFace *f_example, const eBMCreateFlag create_flag, const bool create_edges)
int blender::bmesh_elem_check (void *element, const char htype)
static void blender::bm_kill_only_vert (BMesh *bm, BMVert *v)
static void blender::bm_kill_only_edge (BMesh *bm, BMEdge *e)
static void blender::bm_kill_only_face (BMesh *bm, BMFace *f)
static void blender::bm_kill_only_loop (BMesh *bm, BMLoop *l)
void blender::BM_face_edges_kill (BMesh *bm, BMFace *f)
void blender::BM_face_verts_kill (BMesh *bm, BMFace *f)
void blender::BM_face_kill (BMesh *bm, BMFace *f)
void blender::BM_face_kill_loose (BMesh *bm, BMFace *f)
void blender::BM_edge_kill (BMesh *bm, BMEdge *e)
void blender::BM_vert_kill (BMesh *bm, BMVert *v)
static int UNUSED_FUNCTION blender::bm_loop_length (BMLoop *l)
void blender::bmesh_kernel_loop_reverse (BMesh *bm, BMFace *f, int cd_loop_mdisp_offset, bool use_loop_mdisp_flip)
 Loop Reverse.
static void blender::bm_elements_systag_enable (void *veles, int tot, const char api_flag)
static void blender::bm_elements_systag_disable (void *veles, int tot, const char api_flag)
static int blender::bm_loop_systag_count_radial (BMLoop *l, const char api_flag)
static int UNUSED_FUNCTION blender::bm_vert_systag_count_disk (BMVert *v, const char api_flag)
static bool blender::bm_vert_is_manifold_flagged (BMVert *v, const char api_flag)
BMFace * blender::BM_faces_join (BMesh *bm, BMFace **faces, int totface, bool do_del, BMFace **r_double)
 Join Connected Faces.
static BMFace * blender::bm_face_create__sfme (BMesh *bm, BMFace *f_example)
BMFace * blender::bmesh_kernel_split_face_make_edge (BMesh *bm, BMFace *f, BMLoop *l_v1, BMLoop *l_v2, BMLoop **r_l, BMEdge *example, bool no_double)
 Split Face Make Edge (SFME).
BMVert * blender::bmesh_kernel_split_edge_make_vert (BMesh *bm, BMVert *tv, BMEdge *e, BMEdge **r_e)
 Split Edge Make Vert (SEMV).
BMEdge * blender::bmesh_kernel_join_edge_kill_vert (BMesh *bm, BMEdge *e_kill, BMVert *v_kill, bool do_del, bool check_edge_exists, bool kill_degenerate_faces, bool kill_duplicate_faces)
 Join Edge Kill Vert (JEKV).
BMVert * blender::bmesh_kernel_join_vert_kill_edge (BMesh *bm, BMEdge *e_kill, BMVert *v_kill, bool do_del, bool check_edge_exists, bool kill_degenerate_faces)
 Join Vert Kill Edge (JVKE).
BMFace * blender::bmesh_kernel_join_face_kill_edge (BMesh *bm, BMFace *f1, BMFace *f2, BMEdge *e)
 Join Face Kill Edge (JFKE).
bool blender::BM_vert_splice_check_double_edge (BMVert *v_a, BMVert *v_b)
bool blender::BM_vert_splice_check_double_face (BMVert *v_a, BMVert *v_b)
bool blender::BM_vert_collapse_check_double_face (BMVert *v_collapse)
bool blender::BM_face_split_check_double_face (BMLoop *l_a, BMLoop *l_b, const int f_len)
bool blender::BM_vert_splice (BMesh *bm, BMVert *v_dst, BMVert *v_src)
 Splice Vert.
bool blender::BM_edge_splice (BMesh *bm, BMEdge *e_dst, BMEdge *e_src)
 Splice Edge.
void blender::bmesh_kernel_edge_separate (BMesh *bm, BMEdge *e, BMLoop *l_sep, bool copy_select)
 Separate Edge.
BMVert * blender::bmesh_kernel_unglue_region_make_vert (BMesh *bm, BMLoop *l_sep)
 Un-glue Region Make Vert (URMV).
BMVert * blender::bmesh_kernel_unglue_region_make_vert_multi (BMesh *bm, BMLoop **larr, int larr_len)
static void blender::bmesh_edge_vert_swap__recursive (BMEdge *e, BMVert *v_dst, BMVert *v_src)
BMVert * blender::bmesh_kernel_unglue_region_make_vert_multi_isolated (BMesh *bm, BMLoop *l_sep)
void blender::bmesh_face_swap_data (BMFace *f_a, BMFace *f_b)
Face Partial Overlap Helpers
bool blender::BM_face_pair_overlap_check_subset_same_winding (const BMLoop *l_a, const BMLoop *l_a_end, const BMLoop *l_b, const BMLoop *l_b_end)
bool blender::BM_face_pair_overlap_check_subset_swap_winding (const BMLoop *l_a, const BMLoop *l_a_end, const BMLoop *l_b, const BMLoop *l_b_end)
BM_vert_separate, bmesh_kernel_vert_separate and friends
BLI_INLINE bool blender::bm_edge_supports_separate (const BMEdge *e)
void blender::bmesh_kernel_vert_separate (BMesh *bm, BMVert *v, BMVert ***r_vout, int *r_vout_len, bool copy_select)
 Separate Vert.
static void blender::bmesh_kernel_vert_separate__cleanup (BMesh *bm, LinkNode *edges_separate)
void blender::BM_vert_separate (BMesh *bm, BMVert *v, BMEdge **e_in, int e_in_len, const bool copy_select, BMVert ***r_vout, int *r_vout_len)
void blender::BM_vert_separate_hflag (BMesh *bm, BMVert *v, const char hflag, const bool copy_select, BMVert ***r_vout, int *r_vout_len)
void blender::BM_vert_separate_tested_edges (BMesh *, BMVert *v_dst, BMVert *v_src, bool(*testfn)(BMEdge *, void *arg), void *arg)

Detailed Description

Core BMesh functions for adding, removing BMesh elements.

Definition in file bmesh_core.cc.

Macro Definition Documentation

◆ EDGE_VISIT [1/2]

#define EDGE_VISIT   _FLAG_WALK

◆ EDGE_VISIT [2/2]

◆ LOOP_VISIT

◆ VERT_VISIT