|
Blender
V2.93
|
#include "MEM_guardedalloc.h"#include "BLI_bitmap.h"#include "BLI_blenlib.h"#include "BLI_math.h"#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_object_types.h"#include "BKE_context.h"#include "BKE_customdata.h"#include "BKE_global.h"#include "BKE_mesh.h"#include "BKE_object.h"#include "ED_mesh.h"#include "ED_screen.h"#include "ED_select_utils.h"#include "ED_view3d.h"#include "WM_api.h"#include "WM_types.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_query.h"Go to the source code of this file.
Functions | |
| void | paintface_flush_flags (struct bContext *C, Object *ob, short flag) |
| void | paintface_hide (bContext *C, Object *ob, const bool unselected) |
| void | paintface_reveal (bContext *C, Object *ob, const bool select) |
| static void | select_linked_tfaces_with_seams (Mesh *me, const uint index, const bool select) |
| void | paintface_select_linked (bContext *C, Object *ob, const int mval[2], const bool select) |
| bool | paintface_deselect_all_visible (bContext *C, Object *ob, int action, bool flush_flags) |
| bool | paintface_minmax (Object *ob, float r_min[3], float r_max[3]) |
| bool | paintface_mouse_select (struct bContext *C, Object *ob, const int mval[2], bool extend, bool deselect, bool toggle) |
| void | paintvert_flush_flags (Object *ob) |
| void | paintvert_tag_select_update (struct bContext *C, struct Object *ob) |
| bool | paintvert_deselect_all_visible (Object *ob, int action, bool flush_flags) |
| void | paintvert_select_ungrouped (Object *ob, bool extend, bool flush_flags) |
Definition at line 287 of file editface.c.
References Freestyle::a, BKE_mesh_from_object(), C, MPoly::flag, ME_FACE_SEL, ME_HIDE, Mesh::mpoly, NULL, paintface_flush_flags(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT, and Mesh::totpoly.
Referenced by do_lasso_select_paintface(), do_paintface_box_select(), face_select_all_exec(), paint_facesel_circle_select(), paintface_mouse_select(), and view3d_select_exec().
Definition at line 55 of file editface.c.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_MESH_BATCH_DIRTY_SELECT_PAINT, BKE_mesh_flush_select_from_polys(), BKE_mesh_from_object(), BLI_assert, C, CD_ORIGINDEX, CTX_data_ensure_evaluated_depsgraph(), CustomData_get_layer(), Object::data, Object_Runtime::data_eval, Object_Runtime::data_orig, DEG_get_evaluated_object(), DEG_id_tag_update(), depsgraph, MPoly::flag, ID_RECALC_COPY_ON_WRITE, ID_RECALC_SELECT, ME_HIDE, Mesh::mpoly, NC_GEOM, ND_SELECT, NULL, ORIGINDEX_NONE, Object::runtime, SELECT, Mesh::totpoly, and WM_event_add_notifier().
Referenced by do_lasso_select_paintface(), do_paintface_box_select(), paint_facesel_circle_select(), paintface_deselect_all_visible(), paintface_hide(), paintface_mouse_select(), paintface_reveal(), and paintface_select_linked().
Definition at line 132 of file editface.c.
References Freestyle::a, BKE_mesh_flush_hidden_from_polys(), BKE_mesh_from_object(), C, MPoly::flag, ME_FACE_SEL, ME_HIDE, Mesh::mpoly, NULL, paintface_flush_flags(), SELECT, and Mesh::totpoly.
Referenced by face_select_hide_exec().
Definition at line 348 of file editface.c.
References Freestyle::a, add_v3_v3v3(), BKE_mesh_from_object(), MVert::co, copy_m3_m4(), MPoly::flag, MPoly::loopstart, ME_FACE_SEL, ME_HIDE, minmax_v3v3_v3(), Mesh::mloop, Mesh::mloopuv, Mesh::mpoly, mul_v3_m3v3(), Mesh::mvert, Object::obmat, MPoly::totloop, Mesh::totpoly, and MLoop::v.
Referenced by viewselected_exec().
| bool paintface_mouse_select | ( | struct bContext * | C, |
| Object * | ob, | ||
| const int | mval[2], | ||
| bool | extend, | ||
| bool | deselect, | ||
| bool | toggle | ||
| ) |
Definition at line 385 of file editface.c.
References Mesh::act_face, BKE_mesh_from_object(), C, CTX_wm_region(), ED_MESH_PICK_DEFAULT_FACE_DIST, ED_mesh_pick_face(), ED_region_tag_redraw(), MPoly::flag, ME_FACE_SEL, ME_HIDE, Mesh::mpoly, paintface_deselect_all_visible(), paintface_flush_flags(), SEL_DESELECT, SELECT, and Mesh::totpoly.
Referenced by view3d_select_exec().
Definition at line 164 of file editface.c.
References Freestyle::a, BKE_mesh_flush_hidden_from_polys(), BKE_mesh_from_object(), C, MPoly::flag, ME_FACE_SEL, ME_HIDE, Mesh::mpoly, NULL, paintface_flush_flags(), select(), SELECT, SET_FLAG_FROM_TEST, and Mesh::totpoly.
Referenced by face_select_reveal_exec().
Definition at line 266 of file editface.c.
References BKE_mesh_from_object(), C, ED_MESH_PICK_DEFAULT_FACE_DIST, ED_mesh_pick_face(), NULL, paintface_flush_flags(), select(), SELECT, select_linked_tfaces_with_seams(), and Mesh::totpoly.
Referenced by paint_select_linked_exec(), and paint_select_linked_pick_invoke().
| bool paintvert_deselect_all_visible | ( | Object * | ob, |
| int | action, | ||
| bool | flush_flags | ||
| ) |
Definition at line 499 of file editface.c.
References Freestyle::a, BKE_mesh_from_object(), BKE_mesh_mselect_clear(), BKE_mesh_mselect_validate(), ELEM, MVert::flag, ME_HIDE, Mesh::mvert, NULL, paintvert_flush_flags(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT, and Mesh::totvert.
Referenced by do_lasso_select_paintvert(), do_paintvert_box_select(), ed_wpaint_vertex_select_pick(), paint_vertsel_circle_select(), paintvert_select_ungrouped(), vert_select_all_exec(), and view3d_select_exec().
| void paintvert_flush_flags | ( | Object * | ob | ) |
Definition at line 443 of file editface.c.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_mesh_flush_select_from_verts(), BKE_mesh_from_object(), BKE_object_get_evaluated_mesh(), CD_ORIGINDEX, CustomData_get_layer(), MVert::flag, Mesh::mvert, NULL, ORIGINDEX_NONE, and Mesh::totvert.
Referenced by do_lasso_select_paintvert(), do_paintvert_box_select(), ed_wpaint_vertex_select_pick(), paint_vertsel_circle_select(), paintvert_deselect_all_visible(), paintvert_select_ungrouped(), and vgroup_select_verts().
| void paintvert_select_ungrouped | ( | Object * | ob, |
| bool | extend, | ||
| bool | flush_flags | ||
| ) |
Definition at line 570 of file editface.c.
References Freestyle::a, BKE_mesh_from_object(), Mesh::dvert, MDeformVert::dw, ME_HIDE, Mesh::mvert, NULL, paintvert_deselect_all_visible(), paintvert_flush_flags(), SEL_DESELECT, SELECT, and Mesh::totvert.
Referenced by vert_select_ungrouped_exec().
Definition at line 489 of file editface.c.
References C, Object::data, DEG_id_tag_update(), ID_RECALC_COPY_ON_WRITE, ID_RECALC_SELECT, NC_GEOM, ND_SELECT, and WM_event_add_notifier().
Referenced by do_lasso_select_paintvert(), do_paintvert_box_select(), ed_wpaint_vertex_select_pick(), paint_vertsel_circle_select(), vert_select_all_exec(), vert_select_ungrouped_exec(), and view3d_select_exec().
|
static |
Definition at line 192 of file editface.c.
References Freestyle::a, BKE_mesh_poly_edgebitmap_insert(), BLI_BITMAP_ENABLE, BLI_BITMAP_NEW, BLI_BITMAP_TEST, MLoop::e, MEdge::flag, MPoly::flag, MPoly::loopstart, ME_FACE_SEL, ME_HIDE, ME_SEAM, Mesh::medge, MEM_freeN, Mesh::mloop, Mesh::mpoly, select(), SET_FLAG_FROM_TEST, Mesh::totedge, MPoly::totloop, and Mesh::totpoly.
Referenced by paintface_select_linked().