Blender V5.3
bmo_inset.cc File Reference

Go to the source code of this file.

Classes

struct  blender::InterpFace
struct  blender::SplitEdgeInfo

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_LOOP_CUSTOMDATA_MERGE
#define ELE_NEW   1

Functions

void blender::bmo_inset_individual_exec (BMesh *bm, BMOperator *op)
Generic Face Interpolation

Use for both kinds of inset.

Interpolation, this is more complex for regions since we're not creating new faces and throwing away old ones, so instead, store face data needed for interpolation.

Note
This uses CustomData functions in quite a low-level way which should be avoided, but in this case its hard to do without storing a duplicate mesh.
static void blender::bm_interp_face_store (InterpFace *iface, BMesh *bm, BMFace *f, MemArena *interp_arena)
static void blender::bm_interp_face_free (InterpFace *iface, BMesh *bm)
static void blender::bm_loop_customdata_merge (BMesh *bm, BMEdge *e_connect, BMLoop *l_a_outer, BMLoop *l_b_outer, BMLoop *l_a_inner, BMLoop *l_b_inner)
Inset Individual

Each face has a smaller face created inside it (simple logic).

static void blender::bmo_face_inset_individual (BMesh *bm, BMFace *f, MemArena *interp_arena, const float thickness, const float depth, const bool use_even_offset, const bool use_relative_offset, const bool use_interpolate)
Inset Region

The boundary between tagged and untagged faces is inset (more involved logic).

static BMLoop * blender::bm_edge_is_mixed_face_tag (BMLoop *l)
static float blender::bm_edge_info_average_length (BMVert *v, SplitEdgeInfo *edge_info)
static float blender::bm_edge_info_average_length_fallback (BMVert *v_lookup, SplitEdgeInfo *edge_info, BMesh *bm, void **vert_lengths_p)
static float blender::bm_edge_info_average_length_with_fallback (BMVert *v, SplitEdgeInfo *edge_info, BMesh *bm, void **vert_lengths_p)
void blender::bmo_inset_region_exec (BMesh *bm, BMOperator *op)

Detailed Description

Inset face regions. Inset individual faces.

Definition in file bmo_inset.cc.

Macro Definition Documentation

◆ ELE_NEW

#define ELE_NEW   1

Definition at line 34 of file bmo_inset.cc.

◆ USE_LOOP_CUSTOMDATA_MERGE

#define USE_LOOP_CUSTOMDATA_MERGE

Definition at line 32 of file bmo_inset.cc.