|
Blender V4.3
|
#include "DNA_mesh_types.h"#include "DNA_modifier_types.h"#include "DNA_object_types.h"#include "BKE_attribute.hh"#include "BKE_context.hh"#include "BKE_customdata.hh"#include "BKE_editmesh.hh"#include "BKE_lib_id.hh"#include "BKE_mesh.hh"#include "BKE_modifier.hh"#include "BKE_paint.hh"#include "BKE_shrinkwrap.hh"#include "BLI_math_vector.h"#include "BLT_translation.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "ED_sculpt.hh"#include "ED_undo.hh"#include "bmesh_tools.hh"#include "MEM_guardedalloc.h"#include "mesh_intern.hh"Go to the source code of this file.
Classes | |
| struct | GeometryExtractParams |
Typedefs | |
| using | GeometryExtractTagMeshFunc = void(BMesh *, GeometryExtractParams *) |
Functions | |
| static bool | geometry_extract_poll (bContext *C) |
| static int | geometry_extract_apply (bContext *C, wmOperator *op, GeometryExtractTagMeshFunc *tag_fn, GeometryExtractParams *params) |
| static void | geometry_extract_tag_masked_faces (BMesh *bm, GeometryExtractParams *params) |
| static void | geometry_extract_tag_face_set (BMesh *bm, GeometryExtractParams *params) |
| static int | paint_mask_extract_exec (bContext *C, wmOperator *op) |
| static int | paint_mask_extract_invoke (bContext *C, wmOperator *op, const wmEvent *e) |
| static void | geometry_extract_props (StructRNA *srna) |
| void | MESH_OT_paint_mask_extract (wmOperatorType *ot) |
| static int | face_set_extract_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | MESH_OT_face_set_extract (wmOperatorType *ot) |
| static void | slice_paint_mask (BMesh *bm, bool invert, bool fill_holes, float mask_threshold) |
| static int | paint_mask_slice_exec (bContext *C, wmOperator *op) |
| void | MESH_OT_paint_mask_slice (wmOperatorType *ot) |
| using GeometryExtractTagMeshFunc = void(BMesh *, GeometryExtractParams *) |
Definition at line 75 of file editmesh_mask_extract.cc.
|
static |
Definition at line 362 of file editmesh_mask_extract.cc.
References CTX_data_active_object(), CTX_wm_region(), CTX_wm_region_view3d(), float, geometry_extract_apply(), geometry_extract_tag_face_set(), OPERATOR_CANCELLED, params, SCULPT_FACE_SET_NONE, and wmEvent::xy.
Referenced by MESH_OT_face_set_extract().
|
static |
Definition at line 77 of file editmesh_mask_extract.cc.
References blender::ed::object::add_type(), BKE_editmesh_create(), BKE_editmesh_free_data(), BKE_id_copy(), BKE_id_free(), BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_mesh_from_bmesh_nomain(), BKE_mesh_nomain_to_mesh(), BKE_modifiers_findby_name(), BKE_sculpt_mask_layers_ensure(), BKE_shrinkwrap_mesh_nearest_surface_deform(), bm, BM_EDGE, BM_edge_is_boundary(), BM_EDGES_OF_MESH, BM_elem_flag_set, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, BM_ITER_MESH, BM_mesh_bm_from_me(), BM_mesh_create(), BM_mesh_delete_hflag_context(), BM_mesh_elem_hflag_disable_all(), BM_VERT, BM_vert_is_boundary(), BM_VERTS_OF_MESH, BMALLOC_TEMPLATE_FROM_ME, BMeshFromMeshParams::calc_face_normal, BMeshToMeshParams::calc_object_remap, BMVert::co, CTX_data_active_object(), CTX_data_depsgraph_on_load(), CTX_data_depsgraph_pointer(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), DEL_FACES, depsgraph, edbm_extrude_edges_indiv(), EDBM_op_callf(), eModifierType_Solidify, Object::id, ID_RECALC_GEOMETRY, Object::loc, View3D::local_view_uid, View3D::localvd, blender::ed::object::modifier_add(), mul_v3_v3(), NC_GEOM, NC_OBJECT, ND_DATA, ND_MODIFIER, OB_MESH, blender::ed::sculpt_paint::object_sculpt_mode_exit(), SolidifyModifierData::offset, OPERATOR_FINISHED, params, wmOperator::reports, Object::rot, Object::scale, BMeshCreateParams::use_toolflags, v, Mesh::verts_num, and WM_event_add_notifier().
Referenced by face_set_extract_invoke(), and paint_mask_extract_exec().
|
static |
Definition at line 47 of file editmesh_mask_extract.cc.
References SculptSession::bm, CTX_data_active_object(), CTX_wm_operator_poll_msg_set(), ED_operator_object_active_editable_mesh(), Object::mode, OB_MODE_SCULPT, and Object::sculpt.
Referenced by MESH_OT_face_set_extract(), MESH_OT_paint_mask_extract(), and MESH_OT_paint_mask_slice().
|
static |
Definition at line 307 of file editmesh_mask_extract.cc.
References RNA_def_boolean(), and RNA_def_int().
Referenced by MESH_OT_face_set_extract(), and MESH_OT_paint_mask_extract().
|
static |
Definition at line 264 of file editmesh_mask_extract.cc.
References bm, BM_EDGE, BM_ELEM_CD_GET_INT, BM_elem_flag_set, BM_ELEM_TAG, BM_FACE, BM_FACES_OF_MESH, BM_ITER_MESH, BM_mesh_elem_hflag_disable_all(), BM_VERT, CD_PROP_INT32, CustomData_get_offset_named(), params, and BMesh::pdata.
Referenced by face_set_extract_invoke().
|
static |
Definition at line 235 of file editmesh_mask_extract.cc.
References bm, BM_EDGE, BM_ELEM_CD_GET_FLOAT, BM_elem_flag_set, BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_TAG, BM_FACE, BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_MESH, BM_mesh_elem_hflag_disable_all(), BM_VERT, BM_VERTS_OF_FACE, CD_PROP_FLOAT, CustomData_get_offset_named(), params, v, and BMesh::vdata.
Referenced by paint_mask_extract_exec().
| void MESH_OT_face_set_extract | ( | wmOperatorType * | ot | ) |
Definition at line 388 of file editmesh_mask_extract.cc.
References wmOperatorType::description, face_set_extract_invoke(), wmOperatorType::flag, geometry_extract_poll(), geometry_extract_props(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
| void MESH_OT_paint_mask_extract | ( | wmOperatorType * | ot | ) |
Definition at line 336 of file editmesh_mask_extract.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_extract_poll(), geometry_extract_props(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_mask_extract_exec(), paint_mask_extract_invoke(), wmOperatorType::poll, RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
| void MESH_OT_paint_mask_slice | ( | wmOperatorType * | ot | ) |
Definition at line 549 of file editmesh_mask_extract.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_extract_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_mask_slice_exec(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
|
static |
Definition at line 280 of file editmesh_mask_extract.cc.
References ED_undo_push_op(), geometry_extract_apply(), geometry_extract_tag_masked_faces(), params, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), and RNA_int_get().
Referenced by MESH_OT_paint_mask_extract().
|
static |
Definition at line 301 of file editmesh_mask_extract.cc.
References e, IFACE_, and WM_operator_props_popup_confirm_ex().
Referenced by MESH_OT_paint_mask_extract().
|
static |
Definition at line 457 of file editmesh_mask_extract.cc.
References blender::ed::object::add_type(), BKE_id_copy(), BKE_id_free(), BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_mesh_from_bmesh_nomain(), BKE_mesh_nomain_to_mesh(), BKE_sculpt_mask_layers_ensure(), BKE_sculptsession_free_pbvh(), bm, BM_mesh_bm_from_me(), BM_mesh_create(), BM_mesh_free(), BMALLOC_TEMPLATE_FROM_ME, BMeshFromMeshParams::calc_face_normal, BMeshToMeshParams::calc_object_remap, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), Object::id, ID_RECALC_GEOMETRY, Object::loc, View3D::local_view_uid, View3D::localvd, Object::mode, NC_GEOM, NC_OBJECT, ND_DATA, ND_MODIFIER, OB_MESH, OB_MODE_SCULPT, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), Object::rot, slice_paint_mask(), BMeshCreateParams::use_toolflags, and WM_event_add_notifier().
Referenced by MESH_OT_paint_mask_slice().
|
static |
Definition at line 402 of file editmesh_mask_extract.cc.
References BLI_assert, bm, BM_EDGE, BM_ELEM_CD_GET_FLOAT, BM_elem_flag_set, BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_ELEM_TAG, BM_FACE, BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_MESH, BM_mesh_delete_hflag_context(), BM_mesh_edgenet(), BM_mesh_elem_hflag_disable_all(), BM_mesh_elem_hflag_enable_all(), BM_mesh_normals_update(), BM_VERT, BM_VERTS_OF_FACE, BMO_FLAG_DEFAULTS, BMO_FLAG_RESPECT_HIDE, BMO_op_callf(), CD_PROP_FLOAT, CustomData_get_offset_named(), DEL_FACES, invert(), v, and BMesh::vdata.
Referenced by paint_mask_slice_exec().