Blender V4.3
editmesh_mask_extract.cc File Reference
#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)
 

Typedef Documentation

◆ GeometryExtractTagMeshFunc

Definition at line 75 of file editmesh_mask_extract.cc.

Function Documentation

◆ face_set_extract_invoke()

◆ geometry_extract_apply()

static int geometry_extract_apply ( bContext * C,
wmOperator * op,
GeometryExtractTagMeshFunc * tag_fn,
GeometryExtractParams * params )
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().

◆ geometry_extract_poll()

◆ geometry_extract_props()

static void geometry_extract_props ( StructRNA * srna)
static

◆ geometry_extract_tag_face_set()

◆ geometry_extract_tag_masked_faces()

◆ MESH_OT_face_set_extract()

◆ MESH_OT_paint_mask_extract()

◆ MESH_OT_paint_mask_slice()

◆ paint_mask_extract_exec()

◆ paint_mask_extract_invoke()

static int paint_mask_extract_invoke ( bContext * C,
wmOperator * op,
const wmEvent * e )
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().

◆ paint_mask_slice_exec()

◆ slice_paint_mask()