Blender
V3.3
|
#include "DNA_curve_types.h"
#include "DNA_object_types.h"
#include "BLI_linklist.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_customdata.h"
#include "BKE_editmesh.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_mesh.h"
#include "BKE_mesh_runtime.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "MEM_guardedalloc.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "mesh_intern.h"
Go to the source code of this file.
Functions | |
static LinkNode * | knifeproject_poly_from_object (const bContext *C, Scene *scene, Object *ob, LinkNode *polys) |
static int | knifeproject_exec (bContext *C, wmOperator *op) |
void | MESH_OT_knife_project (wmOperatorType *ot) |
|
static |
Definition at line 110 of file editmesh_knife_project.c.
References BKE_editmesh_from_object(), BKE_object_is_in_editmode(), BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_linklist_freeN(), BMEditMesh::bm, BM_EDGE, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, BM_mesh_elem_hflag_disable_all(), BM_mesh_elem_hflag_enable_test(), BM_mesh_select_mode_flush(), BM_VERT, C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), ED_view3d_viewcontext_init_object(), EDBM_mesh_knife(), EDBM_selectmode_disable(), em_setup_viewcontext(), knifeproject_poly_from_object(), MEM_freeN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, SCE_SELECT_EDGE, SCE_SELECT_VERTEX, scene, ViewContext::v3d, and ViewContext::view_layer.
Referenced by MESH_OT_knife_project().
|
static |
Definition at line 42 of file editmesh_knife_project.c.
References Freestyle::a, BKE_id_free(), BKE_mesh_new_nomain_from_curve(), BKE_mesh_to_curve_nurblist(), BKE_nurbList_free(), BKE_object_get_evaluated_mesh(), BLI_linklist_prepend(), Nurb::bp, C, CD_MASK_BAREMESH, copy_v2_v2(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_region(), CU_NURB_CYCLIC, Object_Runtime::data_eval, DEG_get_evaluated_id(), DEG_get_evaluated_object(), depsgraph, ED_view3d_ob_project_mat_get(), ED_view3d_project_float_v2_m4(), ELEM, ListBase::first, Nurb::flagu, float(), Scene::id, is_cyclic(), MEM_mallocN, mesh_get_eval_final(), Nurb::next, NULL, OB_CURVES_LEGACY, OB_FONT, OB_MESH, OB_SURF, Nurb::pntsu, ARegion::regiondata, Object::runtime, scene, Object::type, and BPoint::vec.
Referenced by knifeproject_exec().
void MESH_OT_knife_project | ( | wmOperatorType * | ot | ) |
Definition at line 162 of file editmesh_knife_project.c.
References wmOperatorType::description, ED_operator_editmesh_region_view3d(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, knifeproject_exec(), wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().