Blender V5.3
bmesh_path_region.cc File Reference
#include "MEM_guardedalloc.h"
#include <algorithm>
#include "BLI_array.hh"
#include "BLI_linklist.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_utildefines_stack.hh"
#include "bmesh.hh"
#include "bmesh_path_region.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_EDGE_CHAIN

Functions

static bool blender::bm_vert_pair_ends (BMVert *v_pivot, BMVert *v_end_pair[2])
static LinkNode * blender::mesh_calc_path_region_elem (BMesh *bm, BMElem *ele_src, BMElem *ele_dst, const char path_htype)
Vertex in Region Checks
static bool blender::bm_vert_region_test (BMVert *v, int *const depths[2], const int pass)
static bool blender::bm_vert_region_test_chain (BMVert *v, int *const depths[2], const int pass)
Main Functions (exposed externally).
LinkNode * blender::BM_mesh_calc_path_region_vert (BMesh *bm, BMElem *ele_src, BMElem *ele_dst, bool(*filter_fn)(BMVert *, void *user_data), void *user_data)
LinkNode * blender::BM_mesh_calc_path_region_edge (BMesh *bm, BMElem *ele_src, BMElem *ele_dst, bool(*filter_fn)(BMEdge *, void *user_data), void *user_data)
LinkNode * blender::BM_mesh_calc_path_region_face (BMesh *bm, BMElem *ele_src, BMElem *ele_dst, bool(*filter_fn)(BMFace *, void *user_data), void *user_data)

Detailed Description

Find the region defined by the path(s) between 2 elements. (path isn't ordered).

Definition in file bmesh_path_region.cc.

Macro Definition Documentation

◆ USE_EDGE_CHAIN

#define USE_EDGE_CHAIN

Special handling of vertices with 2 edges (act as if the edge-chain is a single edge).

Note
Regarding manifold edge stepping: #BM_vert_is_edge_pair_manifold usage. Logic to skip a chain of vertices is not applied at boundaries because it gives strange behavior from a user perspective especially with boundary quads, see: #52701

Restrict walking over a vertex chain to cases where the edges share the same faces. This is more typical of what a user would consider a vertex chain.

Definition at line 37 of file bmesh_path_region.cc.