Blender
V3.3
|
#include "BKE_editmesh.h"
#include "BKE_mesh.h"
#include "BKE_object.h"
#include "DNA_mesh_types.h"
#include "DNA_scene_types.h"
#include "ED_view3d.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "DRW_select_buffer.h"
#include "draw_cache_impl.h"
#include "select_private.h"
Go to the source code of this file.
Functions | |
Draw Utilities | |
void | select_id_object_min_max (Object *obj, float r_min[3], float r_max[3]) |
short | select_id_get_object_select_mode (Scene *scene, Object *ob) |
static bool | check_ob_drawface_dot (short select_mode, const View3D *v3d, eDrawType dt) |
static void | draw_select_id_edit_mesh (SELECTID_StorageList *stl, Object *ob, short select_mode, bool draw_facedot, uint initial_offset, uint *r_vert_offset, uint *r_edge_offset, uint *r_face_offset) |
static void | draw_select_id_mesh (SELECTID_StorageList *stl, Object *ob, short select_mode, uint initial_offset, uint *r_vert_offset, uint *r_edge_offset, uint *r_face_offset) |
void | select_id_draw_object (void *vedata, View3D *v3d, Object *ob, short select_mode, uint initial_offset, uint *r_vert_offset, uint *r_edge_offset, uint *r_face_offset) |
Engine for drawing a selection map where the pixels indicate the selection indices.
Definition in file select_draw_utils.c.
Definition at line 71 of file select_draw_utils.c.
References View3DOverlay::edit_flag, OB_SOLID, View3D::overlay, SCE_SELECT_FACE, V3D_OVERLAY_EDIT_FACE_DOT, and XRAY_FLAG_ENABLED.
Referenced by select_id_draw_object().
|
static |
Definition at line 84 of file select_draw_utils.c.
References BMEditMesh::bm, BM_EDGE, BM_FACE, BM_mesh_elem_table_ensure(), BM_VERT, Object::data, DRW_mesh_batch_cache_get_edges_with_select_id(), DRW_mesh_batch_cache_get_facedots_with_select_id(), DRW_mesh_batch_cache_get_surface(), DRW_mesh_batch_cache_get_triangles_with_select_id(), DRW_mesh_batch_cache_get_verts_with_select_id(), DRW_shgroup_call_no_cull, DRW_shgroup_create_sub(), DRW_shgroup_uniform_int_copy(), Object::dt, Mesh::edit_mesh, SELECTID_StorageList::g_data, GPUBatch, OB_SOLID, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, SELECTID_PrivateData::shgrp_edge, SELECTID_PrivateData::shgrp_face_flat, SELECTID_PrivateData::shgrp_face_unif, SELECTID_PrivateData::shgrp_vert, BMesh::totedge, BMesh::totface, and BMesh::totvert.
Referenced by select_id_draw_object().
|
static |
Definition at line 150 of file select_draw_utils.c.
References Object::data, DRW_mesh_batch_cache_get_edges_with_select_id(), DRW_mesh_batch_cache_get_triangles_with_select_id(), DRW_mesh_batch_cache_get_verts_with_select_id(), DRW_shgroup_call_no_cull, DRW_shgroup_create_sub(), DRW_shgroup_uniform_int_copy(), SELECTID_StorageList::g_data, GPUBatch, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, SELECTID_PrivateData::shgrp_edge, SELECTID_PrivateData::shgrp_face_flat, SELECTID_PrivateData::shgrp_face_unif, SELECTID_PrivateData::shgrp_vert, Mesh::totedge, Mesh::totpoly, and Mesh::totvert.
Referenced by select_id_draw_object().
void select_id_draw_object | ( | void * | vedata, |
View3D * | v3d, | ||
Object * | ob, | ||
short | select_mode, | ||
uint | initial_offset, | ||
uint * | r_vert_offset, | ||
uint * | r_edge_offset, | ||
uint * | r_face_offset | ||
) |
Definition at line 197 of file select_draw_utils.c.
References BLI_assert, check_ob_drawface_dot(), draw_select_id_edit_mesh(), draw_select_id_mesh(), Object::dt, Object::mode, OB_CURVES_LEGACY, OB_MESH, OB_MODE_EDIT, OB_SURF, and Object::type.
Referenced by select_cache_populate().
Definition at line 46 of file select_draw_utils.c.
References Object::data, DEG_get_original_object(), Mesh::editflag, ME_EDIT_PAINT_VERT_SEL, Object::mode, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, SCE_SELECT_FACE, SCE_SELECT_VERTEX, scene, ToolSettings::selectmode, and Scene::toolsettings.
Referenced by select_cache_init().
Definition at line 32 of file select_draw_utils.c.
References BKE_editmesh_cage_boundbox_get(), BKE_editmesh_from_object(), BKE_object_boundbox_get(), copy_v3_v3(), and BoundBox::vec.
Referenced by select_cache_populate().