Blender V5.3
bmesh_decimate_unsubdivide.cc File Reference
#include <algorithm>
#include <optional>
#include "MEM_guardedalloc.h"
#include "BLI_array.hh"
#include "bmesh.hh"
#include "bmesh_decimate.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

enum class  blender::VertDissolveMethod { blender::InteriorFan , blender::InteriorChain , blender::BoundaryFan , blender::WireChain }
enum  { blender::VERT_INDEX_DO_COLLAPSE = -1 , blender::VERT_INDEX_INIT = 0 , blender::VERT_INDEX_IGNORE = 1 }

Functions

static int blender::bm_vert_loops_from_vert_edges (const BMVert *v, BMEdge **v_edges, const int v_edges_num, BMLoop *v_loops[VERT_DISSOLVE_MAX])
static bool blender::bm_vert_dissolve_fan_makes_double_whole_face (BMLoop **v_loops_all, const int v_loops_all_num)
static bool blender::bm_vert_dissolve_fan_makes_double_with_existing (BMLoop **v_loops_all, const int v_loops_all_num)
static bool blender::bm_vert_dissolve_fan_makes_double_with_self (BMLoop **v_loops_all, const int v_loops_all_num)
static std::optional< VertDissolveMethod > blender::bm_vert_dissolve_fan_or_chain_test (BMVert *v, const bool check_for_duplicates, BMLoop *v_loops[VERT_DISSOLVE_MAX], int *v_loops_num_p)
static bool blender::bm_vert_dissolve_fan_or_chain (BMesh *bm, BMVert *v)
static void blender::bm_tag_untagged_neighbors (BMVert *verts_start[], const uint verts_start_num, const int desired_tag, BMVert *r_verts_tagged[], uint &r_verts_tagged_num)
void blender::BM_mesh_decimate_unsubdivide_ex (BMesh *bm, int iterations, bool tag_only)
void blender::BM_mesh_decimate_unsubdivide (BMesh *bm, int iterations)

Variables

constexpr int blender::VERT_DISSOLVE_MAX = 4

Detailed Description

BMesh decimator that uses a grid un-subdivide method.

Definition in file bmesh_decimate_unsubdivide.cc.