Blender V5.3
bmo_dissolve.cc File Reference
#include <cmath>
#include "MEM_guardedalloc.h"
#include "BLI_math_vector_c.hh"
#include "BLI_stack_c.hh"
#include "BLI_vector.hh"
#include "bmesh.hh"
#include "bmesh_tools.hh"
#include "intern/bmesh_operators_private.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define FACE_MARK   1
#define FACE_ORIG   2
#define FACE_NEW   4
#define FACE_TAG   8
#define EDGE_TAG   2
#define EDGE_ISGC   8
#define EDGE_CHAIN   16
#define VERT_MARK   1
#define VERT_MARK_PAIR   4
#define VERT_TAG   2
#define VERT_ISGC   8
#define VERT_MARK_TEAR   16

Functions

Internal Utility API
static bool UNUSED_FUNCTION blender::check_hole_in_region (BMesh *bm, BMFace *f)
static float blender::bmo_vert_calc_edge_angle_blended (const BMVert *v)
static BMEdge * blender::bm_vert_collapse_edge_and_merge (BMesh *bm, BMVert *v, const bool do_del)
static void blender::bm_face_split (BMesh *bm, const short oflag, bool use_edge_delete)

Public Execute Functions

#define EDGE_MARK   1
#define EDGE_MARK   1
#define EDGE_COLLAPSE   2
void blender::bmo_dissolve_faces_exec (BMesh *bm, BMOperator *op)
static BMVert * blender::bmo_find_end_of_chain (BMesh *bm, BMEdge *e, BMVert *v, const short edge_oflag=0)
static bool blender::bmo_vert_touches_unselected_face (BMesh *bm, BMVert *v)
static int blender::bmo_vert_tagged_edges_count_at_most (BMesh *bm, BMVert *v, const short edge_oflag, const int max)
void blender::bmo_dissolve_edges_init (BMOperator *op)
void blender::bmo_dissolve_edges_exec (BMesh *bm, BMOperator *op)
void blender::bmo_dissolve_verts_exec (BMesh *bm, BMOperator *op)
void blender::bmo_dissolve_limit_exec (BMesh *bm, BMOperator *op)
static void blender::bm_mesh_edge_collapse_flagged (BMesh *bm, const int flag, const short oflag)
void blender::bmo_dissolve_degenerate_exec (BMesh *bm, BMOperator *op)

Detailed Description

Removes isolated geometry regions without creating holes in the mesh.

Definition in file bmo_dissolve.cc.

Macro Definition Documentation

◆ EDGE_CHAIN

#define EDGE_CHAIN   16

Set when the edge is part of a chain, where at least of it's vertices has exactly one other connected edge.

Definition at line 40 of file bmo_dissolve.cc.

Referenced by blender::bmo_dissolve_edges_exec().

◆ EDGE_COLLAPSE

#define EDGE_COLLAPSE   2

Definition at line 826 of file bmo_dissolve.cc.

Referenced by blender::bmo_dissolve_degenerate_exec().

◆ EDGE_ISGC

#define EDGE_ISGC   8

◆ EDGE_MARK [1/2]

#define EDGE_MARK   1

Definition at line 33 of file bmo_dissolve.cc.

◆ EDGE_MARK [2/2]

#define EDGE_MARK   1

Definition at line 33 of file bmo_dissolve.cc.

◆ EDGE_TAG

#define EDGE_TAG   2

◆ FACE_MARK

#define FACE_MARK   1

Definition at line 28 of file bmo_dissolve.cc.

◆ FACE_NEW

◆ FACE_ORIG

#define FACE_ORIG   2

Definition at line 29 of file bmo_dissolve.cc.

Referenced by blender::bmo_dissolve_faces_exec().

◆ FACE_TAG

#define FACE_TAG   8

Definition at line 31 of file bmo_dissolve.cc.

◆ VERT_ISGC

#define VERT_ISGC   8

◆ VERT_MARK

◆ VERT_MARK_PAIR

#define VERT_MARK_PAIR   4

Definition at line 43 of file bmo_dissolve.cc.

Referenced by blender::bmo_dissolve_verts_exec().

◆ VERT_MARK_TEAR

#define VERT_MARK_TEAR   16

Definition at line 46 of file bmo_dissolve.cc.

Referenced by blender::bmo_dissolve_verts_exec().

◆ VERT_TAG

#define VERT_TAG   2

Definition at line 44 of file bmo_dissolve.cc.

Referenced by blender::bmo_dissolve_edges_exec().