Blender V5.3
bmo_subdivide_edgering.cc File Reference

Go to the source code of this file.

Classes

struct  blender::LoopPairStore

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define VERT_SHARED   (1 << 0)
#define EDGE_RING   (1 << 0)
#define EDGE_RIM   (1 << 1)
#define EDGE_IN_STACK   (1 << 2)
#define FACE_OUT   (1 << 0)
#define FACE_SHARED   (1 << 1)
#define FACE_IN_STACK   (1 << 2)

Functions

Specialized Utility Functions
static uint blender::bm_verts_tag_count (BMesh *bm)
static float blender::bezier_handle_calc_length_v3 (const float co_a[3], const float no_a[3], const float co_b[3], const float no_b[3])
static void blender::bm_edgeloop_vert_tag (BMEdgeLoopStore *el_store, const bool tag)
static void blender::bmo_edgeloop_vert_tag (BMesh *bm, BMEdgeLoopStore *el_store, const short oflag, const bool tag)
static bool blender::bmo_face_is_vert_tag_all (BMesh *bm, BMFace *f, short oflag)
static bool blender::bm_vert_is_tag_edge_connect (BMesh *bm, BMVert *v)
static bool blender::bm_edgeloop_check_overlap_all (BMesh *bm, BMEdgeLoopStore *el_store_a, BMEdgeLoopStore *el_store_b)
Subdivide an edge 'n' times and return an open edgeloop
static void blender::bm_edge_subdiv_as_loop (BMesh *bm, ListBaseT< BMEdgeLoopStore > *eloops, BMEdge *e, BMVert *v_a, const int cuts)
Loop Pair Cache (struct and utilities functions)
static void blender::bm_vert_calc_surface_tangent (BMesh *bm, BMVert *v, float r_no[3])
static void blender::bm_faces_share_tag_flush (BMesh *bm, BMEdge **e_arr, const uint e_arr_len)
static void blender::bm_faces_share_tag_clear (BMesh *bm, BMEdge **e_arr_iter, const uint e_arr_len_iter)
static LoopPairStore * blender::bm_edgering_pair_store_create (BMesh *bm, BMEdgeLoopStore *el_store_a, BMEdgeLoopStore *el_store_b, const int interp_mode)
static void blender::bm_edgering_pair_store_free (LoopPairStore *lpair, const int interp_mode)
Interpolation Function
static void blender::bm_edgering_pair_interpolate (BMesh *bm, LoopPairStore *lpair, BMEdgeLoopStore *el_store_a, BMEdgeLoopStore *el_store_b, ListBaseT< BMEdgeLoopStore > *eloops_ring, const int interp_mode, const int cuts, const float smooth, const float *falloff_cache)
static void blender::bm_face_slice (BMesh *bm, BMLoop *l, const int cuts)
static bool blender::bm_edgering_pair_order_is_flipped (BMesh *, BMEdgeLoopStore *el_store_a, BMEdgeLoopStore *el_store_b)
static void blender::bm_edgering_pair_order (BMesh *bm, BMEdgeLoopStore *el_store_a, BMEdgeLoopStore *el_store_b)
static void blender::bm_edgering_pair_subdiv (BMesh *bm, BMEdgeLoopStore *el_store_a, BMEdgeLoopStore *el_store_b, ListBaseT< BMEdgeLoopStore > *eloops_ring, const int cuts)
static void blender::bm_edgering_pair_ringsubd (BMesh *bm, LoopPairStore *lpair, BMEdgeLoopStore *el_store_a, BMEdgeLoopStore *el_store_b, const int interp_mode, const int cuts, const float smooth, const float *falloff_cache)
void blender::bmo_subdivide_edgering_exec (BMesh *bm, BMOperator *op)

Edge Loop Pairs

key (ordered loop pointers).

using blender::BMEdgeLoopStorePair = std::pair<BMEdgeLoopStore *, BMEdgeLoopStore *>
static VectorSet< BMEdgeLoopStorePair > blender::bm_edgering_pair_calc (BMesh *bm, ListBaseT< BMEdgeLoopStore > *eloops_rim)

Detailed Description

This operator is a special edge-ring subdivision tool which gives special options for interpolation.

Note
Tagging and flags Tagging here is quite prone to errors if not done carefully.
  • With the exception of EDGE_RIM & EDGE_RIM, all flags need to be cleared on function exit.
  • verts use BM_ELEM_TAG, these need to be cleared before functions exit.
Note
Order of execution with 2+ rings is undefined, so take care.

Definition in file bmo_subdivide_edgering.cc.

Macro Definition Documentation

◆ EDGE_IN_STACK

#define EDGE_IN_STACK   (1 << 2)

Definition at line 45 of file bmo_subdivide_edgering.cc.

Referenced by blender::bm_edgering_pair_subdiv().

◆ EDGE_RIM

◆ EDGE_RING

◆ FACE_IN_STACK

#define FACE_IN_STACK   (1 << 2)

Definition at line 49 of file bmo_subdivide_edgering.cc.

Referenced by blender::bm_edgering_pair_subdiv().

◆ FACE_OUT

#define FACE_OUT   (1 << 0)

Definition at line 47 of file bmo_subdivide_edgering.cc.

◆ FACE_SHARED

◆ VERT_SHARED

#define VERT_SHARED   (1 << 0)