|
Blender V5.0
|
#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 *) |
| using GeometryExtractTagMeshFunc = void(BMesh *, GeometryExtractParams *) |
Definition at line 75 of file editmesh_mask_extract.cc.
|
static |
Definition at line 366 of file editmesh_mask_extract.cc.
References blender::ed::sculpt_paint::face_set::active_update_and_get(), C, 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, ARegion::winrct, rcti::xmin, wmEvent::xy, and rcti::ymin.
Referenced by SCULPT_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_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, C, BMeshFromMeshParams::calc_face_normal, BMeshToMeshParams::calc_object_remap, BMeshFromMeshParams::calc_vert_normal, 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, i, Mesh::id, 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, C, 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 SCULPT_OT_face_set_extract(), SCULPT_OT_paint_mask_extract(), and SCULPT_OT_paint_mask_slice().
|
static |
Definition at line 311 of file editmesh_mask_extract.cc.
References RNA_def_boolean(), and RNA_def_int().
Referenced by SCULPT_OT_face_set_extract(), and SCULPT_OT_paint_mask_extract().
|
static |
Definition at line 262 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(), and params.
Referenced by face_set_extract_invoke().
|
static |
Definition at line 233 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(), mask(), params, and v.
Referenced by paint_mask_extract_exec().
|
static |
Definition at line 278 of file editmesh_mask_extract.cc.
References Geometry::attributes, C, CTX_data_active_object(), Object::data, ED_undo_push_op(), geometry_extract_apply(), geometry_extract_tag_masked_faces(), OPERATOR_CANCELLED, params, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), and RNA_int_get().
Referenced by SCULPT_OT_paint_mask_extract().
|
static |
Definition at line 305 of file editmesh_mask_extract.cc.
References C, e, IFACE_, and WM_operator_props_popup_confirm_ex().
Referenced by SCULPT_OT_paint_mask_extract().
|
static |
Definition at line 461 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_sculptsession_free_pbvh(), bm, BM_mesh_bm_from_me(), BM_mesh_create(), BM_mesh_free(), BMALLOC_TEMPLATE_FROM_ME, C, 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(), blender::ed::sculpt_paint::face_set::find_next_available_id(), blender::ed::sculpt_paint::undo::geometry_begin(), blender::ed::sculpt_paint::undo::geometry_end(), Object::id, ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::face_set::initialize_none_to_id(), Object::loc, View3D::local_view_uid, View3D::localvd, Object::mode, NC_GEOM, NC_OBJECT, ND_DATA, ND_MODIFIER, OB_MESH, OB_MODE_SCULPT, OPERATOR_CANCELLED, 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 SCULPT_OT_paint_mask_slice().
| void SCULPT_OT_face_set_extract | ( | wmOperatorType * | ot | ) |
Definition at line 392 of file editmesh_mask_extract.cc.
References face_set_extract_invoke(), geometry_extract_poll(), geometry_extract_props(), OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_mesh().
| void SCULPT_OT_paint_mask_extract | ( | wmOperatorType * | ot | ) |
Definition at line 340 of file editmesh_mask_extract.cc.
References geometry_extract_poll(), geometry_extract_props(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_mask_extract_exec(), paint_mask_extract_invoke(), and RNA_def_float_factor().
Referenced by ED_operatortypes_mesh().
| void SCULPT_OT_paint_mask_slice | ( | wmOperatorType * | ot | ) |
Definition at line 555 of file editmesh_mask_extract.cc.
References geometry_extract_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_mask_slice_exec(), PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float(), and RNA_def_property_flag().
Referenced by ED_operatortypes_mesh().
Definition at line 406 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(), mask(), and v.
Referenced by paint_mask_slice_exec().