Blender V5.3
bmesh_path_region_uv.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_uv.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_EDGE_CHAIN

Functions

static bool blender::bm_loop_pair_ends (BMLoop *l_pivot, BMLoop *l_end_pair[2])
static LinkNode * blender::mesh_calc_path_region_elem (BMesh *bm, BMElem *ele_src, BMElem *ele_dst, const int cd_loop_uv_offset, const char path_htype)
Loop Vertex in Region Checks
static bool blender::bm_loop_region_test (BMLoop *l, int *const depths[2], const int pass)
static bool blender::bm_loop_region_test_chain (BMLoop *l, int *const depths[2], const int pass)
Main Functions (exposed externally).
LinkNode * blender::BM_mesh_calc_path_uv_region_vert (BMesh *bm, BMElem *ele_src, BMElem *ele_dst, const int cd_loop_uv_offset, bool(*filter_fn)(BMLoop *, void *user_data), void *user_data)
LinkNode * blender::BM_mesh_calc_path_uv_region_edge (BMesh *bm, BMElem *ele_src, BMElem *ele_dst, const int cd_loop_uv_offset, bool(*filter_fn)(BMLoop *, void *user_data), void *user_data)
LinkNode * blender::BM_mesh_calc_path_uv_region_face (BMesh *bm, BMElem *ele_src, BMElem *ele_dst, const int cd_loop_uv_offset, bool(*filter_fn)(BMFace *, void *user_data), void *user_data)

Detailed Description

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

Note
This uses the same behavior as bmesh_path_region.cc however walking UVs causes enough differences that it's impractical to share the code.

Definition in file bmesh_path_region_uv.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 41 of file bmesh_path_region_uv.cc.