Blender V5.3
meshtools.cc File Reference
#include <algorithm>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_vector.hh"
#include "BLI_virtual_array.hh"
#include "DNA_key_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_view3d_types.h"
#include "BKE_attribute.hh"
#include "BKE_context.hh"
#include "BKE_customdata.hh"
#include "BKE_editmesh.hh"
#include "BKE_key.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_material.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_iterators.hh"
#include "BKE_mesh_runtime.hh"
#include "BKE_multires.hh"
#include "BKE_object.hh"
#include "BKE_paint.hh"
#include "BKE_paint_bvh.hh"
#include "BKE_report.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "DEG_depsgraph_query.hh"
#include "DRW_select_buffer.hh"
#include "ED_mesh.hh"
#include "ED_object.hh"
#include "ED_sculpt.hh"
#include "ED_view3d.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "mesh_intern.hh"

Go to the source code of this file.

Classes

struct  blender::VertPickData

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static int blender::mesh_get_x_mirror_vert_spatial (Object *ob, Mesh *mesh_eval, int index)
static int blender::mesh_get_x_mirror_vert_topo (Object *ob, Mesh *mesh, int index)
int blender::mesh_get_x_mirror_vert (Object *ob, Mesh *mesh_eval, int index, bool use_topology)
static BMVert * blender::editbmesh_get_x_mirror_vert_spatial (Object *ob, BMesh *bm, const float co[3])
static BMVert * blender::editbmesh_get_x_mirror_vert_topo (Object *ob, BMesh *bm, BMVert *eve, int index)
BMVert * blender::editbmesh_get_x_mirror_vert (Object *ob, BMesh *bm, BMVert *eve, const float co[3], int index, bool use_topology)
int blender::ED_mesh_mirror_get_vert (Object *ob, int index)
static uint blender::mirror_facehash (const void *ptr)
static int blender::mirror_facerotation (const MFace *a, const MFace *b)
static bool blender::mirror_facecmp (const void *a, const void *b)
int * blender::mesh_get_x_mirror_faces (Object *ob, Mesh *mesh_eval)
bool blender::ED_mesh_pick_face (bContext *C, Object *ob, const int mval[2], uint dist_px, uint *r_index)
static void blender::ed_mesh_pick_face_vert__mpoly_find (ARegion *region, const float mval[2], const IndexRange face, const Span< float3 > vert_positions, const int *corner_verts, float *r_len_best, int *r_v_idx_best)
bool blender::ED_mesh_pick_face_vert (bContext *C, Object *ob, const int mval[2], uint dist_px, uint *r_index)
bool blender::ED_mesh_pick_edge (bContext *C, Object *ob, const int mval[2], uint dist_px, uint *r_index)
static void blender::ed_mesh_pick_vert__mapFunc (void *user_data, int index, const float co[3], const float[3])
bool blender::ED_mesh_pick_vert (bContext *C, Object *ob, const int mval[2], uint dist_px, bool use_zbuf, uint *r_index)
MDeformVert * blender::ED_mesh_active_dvert_get_em (Object *ob, BMVert **r_eve)
MDeformVert * blender::ED_mesh_active_dvert_get_ob (Object *ob, int *r_index)
MDeformVert * blender::ED_mesh_active_dvert_get_only (Object *ob)
void blender::EDBM_mesh_stats_multi (const Span< Object * > objects, int totelem[3], int totelem_sel[3])
void blender::EDBM_mesh_elem_index_ensure_multi (const Span< Object * > objects, const char htype)
static wmOperatorStatus blender::mesh_reorder_vertices_spatial_exec (bContext *C, wmOperator *op)
static bool blender::mesh_reorder_vertices_spatial_poll (bContext *C)
void blender::MESH_OT_reorder_vertices_spatial (wmOperatorType *ot)
Join as Shapes

Add vertex positions of selected meshes as shape keys to the active mesh.

static std::string blender::create_mirrored_name (const StringRefNull object_name, const bool mirror)
wmOperatorStatus blender::ED_mesh_shapes_join_objects_exec (bContext *C, bool ensure_keys_exist, bool mirror, ReportList *reports)

Mesh Topology Mirror API

static MirrTopoStore_t blender::mesh_topo_store = {nullptr, -1, -1, false}
BLI_INLINE void blender::mesh_mirror_topo_table_get_meshes (Object *ob, Mesh *mesh_eval, Mesh **r_mesh_mirror, BMesh **r_bm_mirror)
void blender::ED_mesh_mirror_topo_table_begin (Object *ob, Mesh *mesh_eval)
void blender::ED_mesh_mirror_topo_table_end (Object *ob)
static bool blender::ed_mesh_mirror_topo_table_update (Object *ob, Mesh *mesh_eval)

Detailed Description

meshtools.cc: no editmode (violated already :), mirror & join), tools operating on meshes

Definition in file meshtools.cc.