Blender V4.5
mesh_mirror.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_object_types.h"
#include "BKE_editmesh.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_types.hh"
#include "BLI_kdtree.h"
#include "ED_mesh.hh"

Go to the source code of this file.

Classes

struct  MirrTopoVert_t
struct  [struct].MirrKdStore

Mesh Spatial Mirror API

#define KD_THRESH   0.00002f
static struct  MirrKdStore = {nullptr}
void ED_mesh_mirror_spatial_table_begin (Object *ob, BMEditMesh *em, Mesh *mesh_eval)
int ED_mesh_mirror_spatial_table_lookup (Object *ob, BMEditMesh *em, Mesh *mesh_eval, const float co[3])
void ED_mesh_mirror_spatial_table_end (Object *)

Mesh Topology Mirror API

using MirrTopoHash_t = uint
static int mirrtopo_hash_sort (const void *l1, const void *l2)
static int mirrtopo_vert_sort (const void *v1, const void *v2)
bool ED_mesh_mirrtopo_recalc_check (BMEditMesh *em, Mesh *mesh, MirrTopoStore_t *mesh_topo_store)
void ED_mesh_mirrtopo_init (BMEditMesh *em, Mesh *mesh, MirrTopoStore_t *mesh_topo_store, const bool skip_em_vert_array_init)
void ED_mesh_mirrtopo_free (MirrTopoStore_t *mesh_topo_store)

Detailed Description

Mirror calculation for edit-mode and object mode.

Definition in file editors/mesh/mesh_mirror.cc.

Macro Definition Documentation

◆ KD_THRESH

#define KD_THRESH   0.00002f

Definition at line 27 of file editors/mesh/mesh_mirror.cc.

Referenced by ED_mesh_mirror_spatial_table_lookup().

Typedef Documentation

◆ MirrTopoHash_t

Definition at line 107 of file editors/mesh/mesh_mirror.cc.

Function Documentation

◆ ED_mesh_mirror_spatial_table_begin()

◆ ED_mesh_mirror_spatial_table_end()

◆ ED_mesh_mirror_spatial_table_lookup()

◆ ED_mesh_mirrtopo_free()

◆ ED_mesh_mirrtopo_init()

◆ ED_mesh_mirrtopo_recalc_check()

◆ mirrtopo_hash_sort()

int mirrtopo_hash_sort ( const void * l1,
const void * l2 )
static

Definition at line 114 of file editors/mesh/mesh_mirror.cc.

References mirrtopo_hash_sort().

Referenced by ED_mesh_mirrtopo_init(), and mirrtopo_hash_sort().

◆ mirrtopo_vert_sort()

int mirrtopo_vert_sort ( const void * v1,
const void * v2 )
static

Definition at line 125 of file editors/mesh/mesh_mirror.cc.

References hash, mirrtopo_vert_sort(), and v2.

Referenced by ED_mesh_mirrtopo_init(), and mirrtopo_vert_sort().

Variable Documentation

◆ MirrKdStore