Blender
V3.3
|
#include <stddef.h>
#include "MEM_guardedalloc.h"
#include "DNA_key_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_bitmap.h"
#include "BLI_heap_simple.h"
#include "BLI_linklist.h"
#include "BLI_linklist_stack.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_rand.h"
#include "BLI_sort_utils.h"
#include "BLI_string.h"
#include "BKE_attribute.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
#include "BKE_deform.h"
#include "BKE_editmesh.h"
#include "BKE_key.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_mesh.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_texture.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "BLT_translation.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "ED_object.h"
#include "ED_outliner.h"
#include "ED_screen.h"
#include "ED_select_utils.h"
#include "ED_transform.h"
#include "ED_uvedit.h"
#include "ED_view3d.h"
#include "RE_texture.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "mesh_intern.h"
#include "bmesh_tools.h"
Go to the source code of this file.
Classes | |
struct | EdgeRingOpSubdProps |
struct | BMElemSort |
Macros | |
#define | USE_FACE_CREATE_SEL_EXTEND |
#define | MAXSLOPE 100000 |
#define | WM_MODALKEY(_id) |
Knife Subdivide Operator | |
#define | KNIFE_EXACT 1 |
#define | KNIFE_MIDPOINT 2 |
#define | KNIFE_MULTICUT 3 |
#define | ELE_EDGE_CUT 1 |
static const EnumPropertyItem | knife_items [] |
static float | bm_edge_seg_isect (const float sco_a[2], const float sco_b[2], float(*mouse_path)[2], int len, char mode, int *isected) |
static int | edbm_knife_cut_exec (bContext *C, wmOperator *op) |
void | MESH_OT_knife_cut (wmOperatorType *ot) |
Loop Normals Editing Tools Modal Map | |
#define | CLNORS_VALID_VEC_LEN (1e-4f) |
enum | { EDBM_CLNOR_MODAL_CANCEL = 1 , EDBM_CLNOR_MODAL_CONFIRM = 2 , EDBM_CLNOR_MODAL_POINTTO_RESET = 101 , EDBM_CLNOR_MODAL_POINTTO_INVERT = 102 , EDBM_CLNOR_MODAL_POINTTO_SPHERIZE = 103 , EDBM_CLNOR_MODAL_POINTTO_ALIGN = 104 , EDBM_CLNOR_MODAL_POINTTO_USE_MOUSE = 110 , EDBM_CLNOR_MODAL_POINTTO_USE_PIVOT = 111 , EDBM_CLNOR_MODAL_POINTTO_USE_OBJECT = 112 , EDBM_CLNOR_MODAL_POINTTO_SET_USE_3DCURSOR = 113 , EDBM_CLNOR_MODAL_POINTTO_SET_USE_SELECTED = 114 } |
wmKeyMap * | point_normals_modal_keymap (wmKeyConfig *keyconf) |
Delete Operator | |
enum | { MESH_DELETE_VERT = 0 , MESH_DELETE_EDGE = 1 , MESH_DELETE_FACE = 2 , MESH_DELETE_EDGE_FACE = 3 , MESH_DELETE_ONLY_FACE = 4 } |
static void | edbm_report_delete_info (ReportList *reports, const int totelem_old[3], const int totelem_new[3]) |
static int | edbm_delete_exec (bContext *C, wmOperator *op) |
void | MESH_OT_delete (wmOperatorType *ot) |
Merge Vertices Operator | |
enum | { MESH_MERGE_LAST = 1 , MESH_MERGE_CENTER = 3 , MESH_MERGE_CURSOR = 4 , MESH_MERGE_COLLAPSE = 5 , MESH_MERGE_FIRST = 6 } |
static const EnumPropertyItem | merge_type_items [] |
static bool | merge_firstlast (BMEditMesh *em, const bool use_first, const bool use_uvmerge, wmOperator *wmop) |
static bool | merge_target (BMEditMesh *em, Scene *scene, Object *ob, const bool use_cursor, const bool use_uvmerge, wmOperator *wmop) |
static int | edbm_merge_exec (bContext *C, wmOperator *op) |
static const EnumPropertyItem * | merge_type_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free) |
void | MESH_OT_merge (wmOperatorType *ot) |
Separate Parts Operator | |
enum | { MESH_SEPARATE_SELECTED = 0 , MESH_SEPARATE_MATERIAL = 1 , MESH_SEPARATE_LOOSE = 2 } |
static Base * | mesh_separate_tagged (Main *bmain, Scene *scene, ViewLayer *view_layer, Base *base_old, BMesh *bm_old) |
static Base * | mesh_separate_arrays (Main *bmain, Scene *scene, ViewLayer *view_layer, Base *base_old, BMesh *bm_old, BMVert **verts, uint verts_len, BMEdge **edges, uint edges_len, BMFace **faces, uint faces_len) |
static bool | mesh_separate_selected (Main *bmain, Scene *scene, ViewLayer *view_layer, Base *base_old, BMesh *bm_old) |
static void | mesh_separate_material_assign_mat_nr (Main *bmain, Object *ob, const short mat_nr) |
static bool | mesh_separate_material (Main *bmain, Scene *scene, ViewLayer *view_layer, Base *base_old, BMesh *bm_old) |
static bool | mesh_separate_loose (Main *bmain, Scene *scene, ViewLayer *view_layer, Base *base_old, BMesh *bm_old) |
static int | edbm_separate_exec (bContext *C, wmOperator *op) |
void | MESH_OT_separate (wmOperatorType *ot) |
Sort Geometry Elements Operator | |
enum | { SRT_VIEW_ZAXIS = 1 , SRT_VIEW_XAXIS , SRT_CURSOR_DISTANCE , SRT_MATERIAL , SRT_SELECTED , SRT_RANDOMIZE , SRT_REVERSE } |
typedef struct BMElemSort | BMElemSort |
static int | bmelemsort_comp (const void *v1, const void *v2) |
static void | sort_bmelem_flag (bContext *C, Scene *scene, Object *ob, RegionView3D *rv3d, const int types, const int flag, const int action, const int reverse, const uint seed) |
static int | edbm_sort_elements_exec (bContext *C, wmOperator *op) |
static bool | edbm_sort_elements_poll_property (const bContext *UNUSED(C), wmOperator *op, const PropertyRNA *prop) |
void | MESH_OT_sort_elements (wmOperatorType *ot) |
Bridge Operator | |
enum | { MESH_BRIDGELOOP_SINGLE = 0 , MESH_BRIDGELOOP_CLOSED = 1 , MESH_BRIDGELOOP_PAIRS = 2 } |
static int | edbm_bridge_tag_boundary_edges (BMesh *bm) |
static int | edbm_bridge_edge_loops_for_single_editmesh (wmOperator *op, BMEditMesh *em, struct Mesh *me, const bool use_pairs, const bool use_cyclic, const bool use_merge, const float merge_factor, const int twist_offset) |
static int | edbm_bridge_edge_loops_exec (bContext *C, wmOperator *op) |
void | MESH_OT_bridge_edge_loops (wmOperatorType *ot) |
Average Loop Normals Operator | |
enum | { EDBM_CLNOR_AVERAGE_LOOP = 1 , EDBM_CLNOR_AVERAGE_FACE_AREA = 2 , EDBM_CLNOR_AVERAGE_ANGLE = 3 } |
static EnumPropertyItem | average_method_items [] |
static int | edbm_average_normals_exec (bContext *C, wmOperator *op) |
static bool | average_normals_draw_check_prop (PointerRNA *ptr, PropertyRNA *prop, void *UNUSED(user_data)) |
static void | edbm_average_normals_ui (bContext *C, wmOperator *op) |
void | MESH_OT_average_normals (struct wmOperatorType *ot) |
Custom Normal Interface Tools Operator | |
enum | { EDBM_CLNOR_TOOLS_COPY = 1 , EDBM_CLNOR_TOOLS_PASTE = 2 , EDBM_CLNOR_TOOLS_MULTIPLY = 3 , EDBM_CLNOR_TOOLS_ADD = 4 , EDBM_CLNOR_TOOLS_RESET = 5 } |
static EnumPropertyItem | normal_vector_tool_items [] |
static int | edbm_normals_tools_exec (bContext *C, wmOperator *op) |
static bool | normals_tools_draw_check_prop (PointerRNA *ptr, PropertyRNA *prop, void *UNUSED(user_data)) |
static void | edbm_normals_tools_ui (bContext *C, wmOperator *op) |
void | MESH_OT_normals_tools (struct wmOperatorType *ot) |
Subdivide Operator | |
static const EnumPropertyItem | prop_mesh_cornervert_types [] |
static int | edbm_subdivide_exec (bContext *C, wmOperator *op) |
void | MESH_OT_subdivide (wmOperatorType *ot) |
Weighted Normal Modifier Face Strength | |
static const EnumPropertyItem | prop_mesh_face_strength_types [] |
static int | edbm_mod_weighted_strength_exec (bContext *C, wmOperator *op) |
void | MESH_OT_mod_weighted_strength (struct wmOperatorType *ot) |
Definition at line 8315 of file editmesh_tools.c.
#define ELE_EDGE_CUT 1 |
Definition at line 4194 of file editmesh_tools.c.
#define KNIFE_EXACT 1 |
Definition at line 4014 of file editmesh_tools.c.
#define KNIFE_MIDPOINT 2 |
Definition at line 4015 of file editmesh_tools.c.
#define KNIFE_MULTICUT 3 |
Definition at line 4016 of file editmesh_tools.c.
#define MAXSLOPE 100000 |
#define USE_FACE_CREATE_SEL_EXTEND |
Definition at line 76 of file editmesh_tools.c.
#define WM_MODALKEY | ( | _id | ) |
typedef struct BMElemSort BMElemSort |
anonymous enum |
Enumerator | |
---|---|
MESH_DELETE_VERT | |
MESH_DELETE_EDGE | |
MESH_DELETE_FACE | |
MESH_DELETE_EDGE_FACE | |
MESH_DELETE_ONLY_FACE |
Definition at line 425 of file editmesh_tools.c.
anonymous enum |
Enumerator | |
---|---|
MESH_MERGE_LAST | |
MESH_MERGE_CENTER | |
MESH_MERGE_CURSOR | |
MESH_MERGE_COLLAPSE | |
MESH_MERGE_FIRST |
Definition at line 3259 of file editmesh_tools.c.
anonymous enum |
Enumerator | |
---|---|
MESH_SEPARATE_SELECTED | |
MESH_SEPARATE_MATERIAL | |
MESH_SEPARATE_LOOSE |
Definition at line 4358 of file editmesh_tools.c.
anonymous enum |
Enumerator | |
---|---|
SRT_VIEW_ZAXIS | Use view Z (deep) axis. |
SRT_VIEW_XAXIS | Use view X (left to right) axis. |
SRT_CURSOR_DISTANCE | Use distance from element to 3D cursor. |
SRT_MATERIAL | Face only: use mat number. |
SRT_SELECTED | Move selected elements in first, without modifying relative order of selected and unselected elements. |
SRT_RANDOMIZE | Randomize selected elements. |
SRT_REVERSE | Reverse current order of selected elements. |
Definition at line 6562 of file editmesh_tools.c.
anonymous enum |
Enumerator | |
---|---|
MESH_BRIDGELOOP_SINGLE | |
MESH_BRIDGELOOP_CLOSED | |
MESH_BRIDGELOOP_PAIRS |
Definition at line 7227 of file editmesh_tools.c.
anonymous enum |
Definition at line 8234 of file editmesh_tools.c.
anonymous enum |
Enumerator | |
---|---|
EDBM_CLNOR_POINTTO_MODE_COORDINATES | |
EDBM_CLNOR_POINTTO_MODE_MOUSE |
Definition at line 8323 of file editmesh_tools.c.
anonymous enum |
Enumerator | |
---|---|
EDBM_CLNOR_AVERAGE_LOOP | |
EDBM_CLNOR_AVERAGE_FACE_AREA | |
EDBM_CLNOR_AVERAGE_ANGLE |
Definition at line 9057 of file editmesh_tools.c.
anonymous enum |
Enumerator | |
---|---|
EDBM_CLNOR_TOOLS_COPY | |
EDBM_CLNOR_TOOLS_PASTE | |
EDBM_CLNOR_TOOLS_MULTIPLY | |
EDBM_CLNOR_TOOLS_ADD | |
EDBM_CLNOR_TOOLS_RESET |
Definition at line 9305 of file editmesh_tools.c.
|
static |
Definition at line 9230 of file editmesh_tools.c.
References EDBM_CLNOR_AVERAGE_LOOP, ptr, RNA_enum_get(), RNA_property_identifier(), and STREQ.
Referenced by edbm_average_normals_ui().
|
static |
Definition at line 4027 of file editmesh_tools.c.
References KNIFE_MULTICUT, len, max_ff(), MAXSLOPE, min_ff(), and threshold.
Referenced by edbm_knife_cut_exec().
Definition at line 4921 of file editmesh_tools.c.
References BM_elem_flag_test_bool, BM_ELEM_SELECT, and e.
Referenced by edbm_fill_grid_prepare().
Definition at line 574 of file editmesh_tools.c.
References BM_edge_is_boundary(), BM_FACE_FIRST_LOOP, BMLoop::e, and BMLoop::next.
Referenced by edbm_delete_loose_exec().
Definition at line 1373 of file editmesh_tools.c.
References bm, BM_EDGE, BM_ELEM_SELECT, BM_vert_normal_update(), BMO_FLAG_DEFAULTS, BMO_op_exec(), BMO_op_finish(), BMO_op_init(), BMO_slot_buffer_alloc(), BMO_slot_buffer_hflag_enable(), BMOperator::slots_in, BMOperator::slots_out, BMesh::totedge, and verts.
Referenced by bm_vert_connect_select_history().
Definition at line 1394 of file editmesh_tools.c.
References BLI_listbase_count_at_most(), bm, BM_edge_create(), BM_edge_exists(), BM_edge_select_set(), BM_VERT, bm_vert_connect_pair(), bm_vert_is_select_history_open(), BM_vert_is_wire(), BMVert::e, e, BMEditSelection::ele, ListBase::first, BMEditSelection::htype, if(), ListBase::last, BMEditSelection::next, NULL, BMesh::selected, BMesh::totvertsel, and v.
Referenced by edbm_vert_connect_path_exec().
|
static |
Convert an edge selection to a temp vertex selection (which must be cleared after use as a path to connect).
Definition at line 1498 of file editmesh_tools.c.
References bm, BM_EDGE, BM_edge_pair_share_face_by_len(), BM_select_history_store_head_notest, BM_select_history_store_notest, BMVert::co, BMEditSelection::ele, ListBase::first, BMEditSelection::htype, is_quad_flip_v3(), ListBase::last, BMEditSelection::next, NULL, BMEditSelection::prev, BMesh::selected, SWAP, BMesh::totedgesel, BMLoop::v, v, BMEdge::v1, and BMEdge::v2.
Referenced by edbm_vert_connect_path_exec().
check that endpoints are verts and only have a single selected edge connected.
Definition at line 1357 of file editmesh_tools.c.
References bm, BM_EDGES_OF_VERT, BM_ELEM_SELECT, BM_iter_elem_count_flag(), BM_VERT, BMEditSelection::ele, ListBase::first, BMEditSelection::htype, ListBase::last, and BMesh::selected.
Referenced by bm_vert_connect_select_history().
Definition at line 6587 of file editmesh_tools.c.
References BMElemSort::srt, v1, v2, and x2.
Referenced by sort_bmelem_flag().
Definition at line 8418 of file editmesh_tools.c.
References add_v3_v3(), bm, BM_elem_flag_test, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, BMVert::co, mul_v3_fl(), v, and zero_v3().
Referenced by edbm_point_normals_modal(), and point_normals_apply().
Definition at line 749 of file editmesh_tools.c.
References bm, BM_EDGES_OF_MESH, BM_elem_flag_test, BM_elem_flag_test_bool, BM_ELEM_SELECT, BM_ELEM_SMOOTH, BM_ITER_MESH, and e.
Referenced by edbm_add_edge_face_exec(), and edbm_fill_grid_exec().
|
static |
Definition at line 927 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_EDGE, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_FACE, BMO_op_exec(), BMO_slot_buffer_get_first(), BMO_slot_buffer_hflag_disable(), BMO_slot_buffer_hflag_enable(), BMO_slot_buffer_len(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, edbm_add_edge_face__smooth_get(), edbm_add_edge_face_exec__tricky_extend_sel(), edbm_add_edge_face_exec__tricky_finalize_sel(), EDBM_op_finish(), EDBM_op_init(), EDBM_update(), BMEditMesh::mat_nr, MEM_freeN, OPERATOR_CANCELLED, OPERATOR_FINISHED, BMOperator::slots_out, BMesh::totedge, BMesh::totedgesel, BMesh::totface, and BMesh::totvertsel.
Referenced by MESH_OT_edge_face_add().
Definition at line 791 of file editmesh_tools.c.
References bm, BM_edge_exists(), BM_edge_is_boundary(), BM_edge_is_wire(), BM_edge_other_vert(), BM_edge_select_set(), BM_edge_share_face_check(), BM_EDGES_OF_MESH, BM_elem_flag_test, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, e, edbm_add_edge_face_exec__vert_edge_lookup(), NULL, BMesh::totedgesel, BMesh::totfacesel, BMesh::totvertsel, and v.
Referenced by edbm_add_edge_face_exec().
|
static |
Definition at line 884 of file editmesh_tools.c.
References BLI_assert, bm, BM_edge_select_set(), BM_elem_flag_disable, BM_ELEM_HIDDEN, BM_face_edge_share_loop(), BM_face_select_set(), BM_face_vert_share_loop(), BM_select_history_clear(), BM_select_history_store, BM_VERT, BM_vert_select_set(), BMLoop::e, ELEM, BMElem::head, BMHeader::htype, l, BMFace::len, BMLoop::next, and BMLoop::v.
Referenced by edbm_add_edge_face_exec().
|
static |
Function used to get a fixed number of edges linked to a vertex that passes a test function. This is used so we can request all boundary edges connected to a vertex for eg.
Definition at line 770 of file editmesh_tools.c.
References BM_EDGES_OF_VERT, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ITER_ELEM, NULL, and v.
Referenced by edbm_add_edge_face_exec__tricky_extend_sel().
|
static |
Definition at line 9082 of file editmesh_tools.c.
References add_v3_v3(), BKE_editmesh_ensure_autosmooth(), BKE_editmesh_from_object(), BKE_editmesh_lnorspace_update(), BKE_lnor_space_custom_data_to_normal(), BKE_lnor_space_custom_normal_to_data(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_assert, BLI_heapsimple_free(), BLI_heapsimple_insert(), BLI_heapsimple_is_empty(), BLI_heapsimple_new(), BLI_heapsimple_pop_min(), BLI_heapsimple_top_value(), BLI_SMALLSTACK_DECLARE, BLI_SMALLSTACK_IS_EMPTY, BLI_SMALLSTACK_POP, BLI_SMALLSTACK_PUSH, BMEditMesh::bm, bm, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_elem_index_get, BM_ELEM_SELECT, BM_ELEM_TAG, BM_face_calc_area(), BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_MESH, BM_loop_calc_face_angle(), BM_loop_check_cyclic_smooth_fan(), BM_normals_loops_edges_tag(), BM_SPACEARR_DIRTY_ALL, BM_vert_step_fan_loop(), C, CD_CUSTOMLOOPNORMAL, CLNORS_VALID_VEC_LEN, compare_ff(), copy_v3_v3(), count, CTX_data_view_layer(), CTX_wm_view3d(), CustomData_get_offset(), Object::data, BMLoop::e, EDBM_CLNOR_AVERAGE_ANGLE, EDBM_CLNOR_AVERAGE_FACE_AREA, EDBM_CLNOR_AVERAGE_LOOP, EDBM_update(), BMLoop::f, float(), l, BMesh::ldata, BMesh::lnor_spacearr, MLoopNorSpaceArray::lspacearr, MEM_freeN, mul_v3_fl(), BMLoop::next, BMFace::no, normalize_v3(), NULL, OPERATOR_FINISHED, pow(), BMLoop::prev, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), RNA_int_get(), BMesh::spacearr_dirty, threshold, UNUSED_VARS_NDEBUG, BMLoop::v, and zero_v3().
Referenced by MESH_OT_average_normals().
|
static |
Definition at line 9250 of file editmesh_tools.c.
References average_normals_draw_check_prop(), C, CTX_wm_manager(), wmWindowManager::id, wmOperator::layout, NULL, wmOperator::properties, ptr, RNA_pointer_create(), wmOperatorType::srna, wmOperator::type, uiDefAutoButsRNA(), and uiLayoutSetPropSep().
Referenced by MESH_OT_average_normals().
|
static |
Definition at line 5295 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_edge_calc_face_angle_ex(), BM_EDGES_OF_MESH, BM_elem_flag_set, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_TAG, BM_ITER_MESH, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, e, EDBM_op_call_and_selectf(), EDBM_update(), M_PI, MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and BMesh::totfacesel.
Referenced by MESH_OT_beautify_fill().
|
static |
Definition at line 3753 of file editmesh_tools.c.
References BKE_keyblock_find_name(), BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, blend(), BLI_findindex(), BLI_findlink(), Key::block, BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, C, CD_SHAPEKEY, BMVert::co, copy_v3_v3(), CTX_data_edit_object(), CTX_data_view_layer(), CTX_wm_view3d(), CustomData_bmesh_get_n(), CustomData_number_of_layers(), BMHeader::data, Object::data, EDBM_update(), Mesh::edit_mesh, BMVert::head, interp_v3_v3v3(), Mesh::key, madd_v3_v3fl(), MEM_freeN, KeyBlock::name, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, KeyBlock::relative, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), RPT_ERROR, sub_v3_v3v3(), BMesh::totvertsel, and BMesh::vdata.
Referenced by MESH_OT_blend_from_shape().
|
static |
Definition at line 3886 of file editmesh_tools.c.
References C, CTX_data_edit_object(), Object::data, Mesh::key, wmOperator::layout, NULL, wmOperator::ptr, RNA_id_pointer_create(), uiItemPointerR(), uiItemR(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by MESH_OT_blend_from_shape().
|
static |
Definition at line 7391 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, edbm_bridge_edge_loops_for_single_editmesh(), MEM_freeN, MESH_BRIDGELOOP_CLOSED, MESH_BRIDGELOOP_PAIRS, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), RNA_int_get(), BMesh::totvertsel, and type.
Referenced by MESH_OT_bridge_edge_loops().
|
static |
Definition at line 7275 of file editmesh_tools.c.
References BMEditMesh::bm, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, BM_FACES_OF_MESH, BM_ITER_MESH, BM_mesh_elem_hflag_disable_all(), BMO_ERROR_CANCEL, BMO_error_occurred_at_level(), BMO_FLAG_DEFAULTS, BMO_op_callf(), BMO_op_exec(), BMO_op_finish(), BMO_op_initf(), BMO_slot_buffer_hflag_enable(), EdgeRingOpSubdProps::cuts, DEL_FACES_KEEP_BOUNDARY, edbm_bridge_tag_boundary_edges(), EDBM_flag_disable_all(), EDBM_mesh_normals_update(), EDBM_op_finish(), EDBM_op_init(), EDBM_update(), EdgeRingOpSubdProps::interp_mode, MEM_freeN, MEM_mallocN, mesh_operator_edgering_props_get(), NULL, OPERATOR_FINISHED, EdgeRingOpSubdProps::profile_shape, EdgeRingOpSubdProps::profile_shape_factor, BMOperator::slots_out, EdgeRingOpSubdProps::smooth, and BMesh::totfacesel.
Referenced by edbm_bridge_edge_loops_exec().
|
static |
Definition at line 7233 of file editmesh_tools.c.
References bm, BM_EDGE, BM_edge_is_boundary(), BM_edge_is_wire(), BM_EDGES_OF_MESH, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, BM_FACES_OF_EDGE, BM_ITER_ELEM, BM_ITER_MESH, BM_mesh_elem_hflag_disable_all(), and e.
Referenced by edbm_bridge_edge_loops_for_single_editmesh().
|
static |
Definition at line 696 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_callf(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, and BMesh::totedgesel.
Referenced by MESH_OT_edge_collapse().
|
static |
Definition at line 1205 of file editmesh_tools.c.
References BMEditMesh::bm, bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_EDGE, BM_elem_cb_check_hflag_disabled_simple, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_ITER_MESH, BM_vert_pair_share_face_check_cb(), BM_VERTS_OF_MESH, BMO_ERROR_FATAL, BMO_error_occurred_at_level(), BMO_op_exec(), BMO_slot_buffer_hflag_enable(), BMO_slot_get(), EDBM_op_finish(), EDBM_op_init(), EDBM_redo_state_free(), EDBM_redo_state_restore_and_free(), EDBM_redo_state_store(), EDBM_selectmode_flush(), EDBM_update(), BMOpSlot::len, len, MEM_freeN, MEM_mallocN, BMOperator::slots_out, BMesh::totvertsel, v, and verts.
Referenced by edbm_vert_connect_exec(), and edbm_vert_connect_path_exec().
|
static |
Definition at line 5857 of file editmesh_tools.c.
Referenced by MESH_OT_decimate().
|
static |
Calculate a new ratio based on faces that could be removed during decimation. needed so 0..1 has a meaningful range when operating on the selection.
This doesn't have to be totally accurate, but needs to be greater than the number of selected faces
Definition at line 5731 of file editmesh_tools.c.
References BKE_defvert_find_weight(), BKE_editmesh_from_object(), BKE_object_defgroup_active_index_get(), BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_elem_index_get, BM_elem_index_set, BM_ELEM_SELECT, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_MESH, BM_ITER_MESH_INDEX, BM_mesh_decimate_collapse(), BM_VERT, BM_VERTS_OF_MESH, C, CD_MDEFORMVERT, CTX_data_view_layer(), CTX_wm_view3d(), CustomData_get_offset(), Object::data, EDBM_selectmode_flush_ex(), EDBM_update(), BMesh::elem_index_dirty, float(), BMFace::len, MEM_freeN, MEM_mallocN, BMLoop::next, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), RPT_WARNING, SCE_SELECT_EDGE, SCE_SELECT_VERTEX, BMEditMesh::selectmode, BMesh::totedgesel, BMesh::totface, BMesh::totfacesel, BMesh::totvert, BMLoop::v, v, and BMesh::vdata.
Referenced by MESH_OT_decimate().
|
static |
Definition at line 5862 of file editmesh_tools.c.
References col, IFACE_, wmOperator::layout, NULL, wmOperator::ptr, RNA_boolean_get(), UI_ITEM_R_EXPAND, uiItemR(), uiLayoutColumn(), uiLayoutRow(), uiLayoutRowWithHeading(), uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by MESH_OT_decimate().
|
static |
Definition at line 6413 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_EDGES_OF_MESH, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, BM_ITER_MESH, BM_mesh_elem_hflag_disable_all(), BM_mesh_elem_hflag_enable_test(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, e, EDBM_op_callf(), EDBM_selectmode_flush_ex(), EDBM_update(), BMLoop::f, MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, BMLoop::radial_next, RNA_boolean_get(), SCE_SELECT_VERTEX, and BMesh::totedgesel.
Referenced by MESH_OT_delete_edgeloop().
|
static |
Definition at line 445 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_assert, BMEditMesh::bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), DEL_EDGES, DEL_EDGESFACES, DEL_FACES, DEL_ONLYFACES, DEL_VERTS, EDBM_flag_disable_all(), EDBM_op_callf(), EDBM_update(), ID_RECALC_SELECT, MEM_freeN, MESH_DELETE_EDGE, MESH_DELETE_EDGE_FACE, MESH_DELETE_FACE, MESH_DELETE_ONLY_FACE, MESH_DELETE_VERT, NC_GEOM, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), BMesh::totedgesel, BMesh::totfacesel, BMesh::totvertsel, type, and WM_event_add_notifier().
Referenced by MESH_OT_delete().
|
static |
Definition at line 588 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_EDGE, BM_edge_is_wire(), BM_EDGES_OF_MESH, BM_elem_flag_set, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, bm_face_is_loose(), BM_FACES_OF_MESH, BM_ITER_MESH, BM_mesh_delete_hflag_context(), BM_mesh_elem_hflag_disable_all(), BM_VERT, BM_VERTS_OF_MESH, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEL_EDGES, DEL_FACES, DEL_VERTS, BMVert::e, e, EDBM_flag_disable_all(), EDBM_mesh_stats_multi(), edbm_report_delete_info(), EDBM_update(), MEM_freeN, NULL, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), and v.
Referenced by MESH_OT_delete_loose().
|
static |
Definition at line 6330 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_callf(), edbm_report_delete_info(), EDBM_select_flush(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_float_get(), BMesh::totedge, BMesh::totface, and BMesh::totvert.
Referenced by MESH_OT_dissolve_degenerate().
|
static |
Definition at line 6025 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_callf(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and BMesh::totedgesel.
Referenced by edbm_dissolve_mode_exec(), and MESH_OT_dissolve_edges().
|
static |
Definition at line 6092 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_call_and_selectf(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and BMesh::totfacesel.
Referenced by edbm_dissolve_mode_exec(), and MESH_OT_dissolve_faces().
|
static |
Definition at line 6204 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_EDGES_OF_MESH, BM_elem_flag_disable, BM_elem_flag_set, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_MESH, BM_LOOPS_OF_FACE, BM_VERTS_OF_MESH, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, BMLoop::e, EDBM_op_call_and_selectf(), EDBM_update(), l, MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), SCE_SELECT_FACE, BMEditMesh::selectmode, BMesh::totedgesel, BMesh::totfacesel, BMesh::totvertsel, and BMLoop::v.
Referenced by MESH_OT_dissolve_limited().
|
static |
Definition at line 6156 of file editmesh_tools.c.
References BKE_editmesh_from_object(), C, CTX_data_edit_object(), edbm_dissolve_edges_exec(), edbm_dissolve_faces_exec(), edbm_dissolve_verts_exec(), wmOperator::ptr, RNA_property_boolean_set(), RNA_property_is_set(), RNA_struct_find_property(), SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, and BMEditMesh::selectmode.
Referenced by MESH_OT_dissolve_mode().
|
static |
Definition at line 5949 of file editmesh_tools.c.
References ot, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by MESH_OT_dissolve_mode(), and MESH_OT_dissolve_verts().
|
static |
Definition at line 5941 of file editmesh_tools.c.
References ot, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by MESH_OT_dissolve_edges(), MESH_OT_dissolve_mode(), and MESH_OT_dissolve_verts().
|
static |
Definition at line 5930 of file editmesh_tools.c.
References ot, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by MESH_OT_dissolve_edges(), MESH_OT_dissolve_faces(), and MESH_OT_dissolve_mode().
|
static |
Definition at line 5958 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_callf(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and BMesh::totvertsel.
Referenced by edbm_dissolve_mode_exec(), and MESH_OT_dissolve_verts().
|
static |
Definition at line 2764 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_callf(), EDBM_update(), EDBM_verts_mirror_apply(), EDBM_verts_mirror_cache_begin(), EDBM_verts_mirror_cache_end(), Mesh::editflag, ME_EDIT_MIRROR_TOPO, ME_SYMMETRY_X, MEM_freeN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_float_get(), RNA_int_get(), RPT_WARNING, and BMesh::totvertsel.
Referenced by MESH_OT_vertices_smooth_laplacian().
|
static |
Definition at line 2635 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_callf(), EDBM_update(), EDBM_verts_mirror_apply(), EDBM_verts_mirror_cache_begin(), EDBM_verts_mirror_cache_end(), Mesh::editflag, eModifierMode_Realtime, eModifierType_Mirror, MirrorModifierData::flag, LISTBASE_FOREACH, ME_EDIT_MIRROR_TOPO, ME_SYMMETRY_X, MEM_freeN, MOD_MIR_AXIS_X, MOD_MIR_AXIS_Y, MOD_MIR_AXIS_Z, MOD_MIR_CLIPPING, Object::modifiers, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), RNA_int_get(), MirrorModifierData::tolerance, and BMesh::totvertsel.
Referenced by MESH_OT_vertices_smooth().
|
static |
Definition at line 2013 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_ALL_NOLOOP, BM_ELEM_SELECT, BM_SELECT_HISTORY_BACKUP, BM_SELECT_HISTORY_RESTORE, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_flag_disable_all(), EDBM_op_finish(), EDBM_op_init(), EDBM_update(), MEM_freeN, OPERATOR_CANCELLED, OPERATOR_FINISHED, BMOperator::slots_out, and BMesh::totvertsel.
Referenced by edbm_duplicate_invoke(), and MESH_OT_duplicate().
|
static |
Definition at line 2068 of file editmesh_tools.c.
References C, edbm_duplicate_exec(), and WM_cursor_wait().
Referenced by MESH_OT_duplicate().
|
static |
Rotate the edges between selected faces, otherwise rotate the selected edges.
Definition at line 2303 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_report(), BKE_reportf(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_EDGE, BM_edge_face_pair(), BM_EDGES_OF_MESH, BM_elem_flag_disable, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_ELEM_TAG, BM_ITER_MESH, BM_mesh_elem_hflag_enable_test(), BMO_op_exec(), BMO_slot_buffer_hflag_disable(), BMO_slot_buffer_hflag_enable(), BMO_slot_buffer_len(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_selectmode_flush(), EDBM_update(), fb(), MEM_freeN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, RPT_WARNING, BMOperator::slots_in, BMOperator::slots_out, and BMesh::totedgesel.
Referenced by MESH_OT_edge_rotate().
|
static |
Definition at line 1946 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_assert, BM_EDGE, BM_VERT, C, CTX_data_view_layer(), CTX_wm_view3d(), edbm_edge_split_selected_edges(), edbm_edge_split_selected_verts(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and type.
Referenced by MESH_OT_edge_split().
|
static |
Definition at line 1844 of file editmesh_tools.c.
References BMEditMesh::bm, bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_ELEM_SELECT, Object::data, EDBM_op_call_and_selectf(), EDBM_select_flush(), EDBM_update(), and BMesh::totedgesel.
Referenced by edbm_edge_split_exec().
|
static |
Definition at line 1871 of file editmesh_tools.c.
References BMEditMesh::bm, bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_DISK_EDGE_NEXT, BM_EDGES_OF_MESH, BM_elem_flag_disable, BM_elem_flag_enable, BM_elem_flag_set, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_ELEM_TAG, BM_ITER_MESH, BM_vert_select_set(), BM_vert_separate(), Object::data, EDBM_op_callf(), EDBM_select_flush(), EDBM_update(), BMEdge::l, NULL, BMLoop::radial_next, BMesh::totvertsel, BMLoop::v, v, BMEdge::v1, and BMEdge::v2.
Referenced by edbm_edge_split_exec().
|
static |
Definition at line 1781 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_callf(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), RNA_int_get(), and BMesh::totfacesel.
Referenced by MESH_OT_face_make_planar().
|
static |
Definition at line 2954 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_update(), MEM_freeN, mesh_set_smooth_faces(), OPERATOR_FINISHED, and BMesh::totfacesel.
Referenced by MESH_OT_faces_shade_flat().
|
static |
Definition at line 2906 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_update(), MEM_freeN, mesh_set_smooth_faces(), OPERATOR_FINISHED, and BMesh::totfacesel.
Referenced by MESH_OT_faces_shade_smooth().
|
static |
Definition at line 4832 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_EDGE, BM_ELEM_SELECT, BM_FACE, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_update(), MEM_freeN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, RPT_WARNING, BMOperator::slots_out, BMesh::totedgesel, and BMesh::totface.
Referenced by MESH_OT_fill().
|
static |
Definition at line 5089 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), edbm_add_edge_face__smooth_get(), edbm_fill_grid_prepare(), EDBM_op_finish(), EDBM_op_init(), EDBM_update(), wmOperator::flag, Object::id, BMEditMesh::mat_nr, MEM_freeN, offset, OP_IS_INVOKE, OP_IS_REPEAT_LAST, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_property_int_get(), RNA_property_int_set(), RNA_property_is_set(), RNA_struct_find_property(), BMOperator::slots_out, BMesh::totedge, BMesh::totedgesel, and BMesh::totface.
Referenced by MESH_OT_fill_grid().
|
static |
non-essential utility function to select 2 open edge loops from a closed loop.
Definition at line 4945 of file editmesh_tools.c.
References angle(), BLI_findlink(), BLI_findptr(), BLI_listbase_rotate_first(), BLI_sortutil_cmp_float_reverse(), bm, bm_edge_test_fill_grid_cb(), BM_edgeloop_edges_get(), BM_edgeloop_is_closed(), BM_edgeloop_length_get(), BM_edgeloop_verts_get(), BM_EDGES_OF_MESH, BM_elem_flag_disable, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_TAG, BM_ITER_MESH, BM_mesh_active_vert_get(), BM_mesh_edgeloops_find(), BM_mesh_edgeloops_free(), count, SortPtrByFloat::data, data, LinkData::data, e, edbm_fill_grid_vert_tag_angle(), ListBase::first, MEM_freeN, MEM_mallocN, min_ii(), mod_i(), LinkData::next, next, NULL, offset, SortPtrByFloat::sort_value, v, and verts.
Referenced by edbm_fill_grid_exec().
Definition at line 4926 of file editmesh_tools.c.
References angle_v3v3v3(), BLI_assert, BM_edge_other_vert(), BM_EDGES_OF_VERT, BM_elem_flag_test, BM_ELEM_TAG, BM_ITER_ELEM, BMVert::co, fabsf, M_PI, and v.
Referenced by edbm_fill_grid_prepare().
|
static |
Definition at line 5230 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_call_and_selectf(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and BMesh::totedgesel.
Referenced by MESH_OT_fill_holes().
|
static |
Definition at line 2188 of file editmesh_tools.c.
References BKE_lnor_space_custom_normal_to_data(), BMEditMesh::bm, bm, BM_lnorspace_update(), BM_loop_normal_editdata_array_free(), BM_loop_normal_editdata_array_init(), CD_CUSTOMLOOPNORMAL, BMLoopNorEditData::clnors_data, CustomData_has_layer(), Object::data, EDBM_update(), BMesh::ldata, BMLoopNorEditDataArray::lnor_editdata, BMesh::lnor_spacearr, BMLoopNorEditData::loop_index, MLoopNorSpaceArray::lspacearr, negate_v3(), BMLoopNorEditData::nloc, and BMLoopNorEditDataArray::totloop.
Referenced by edbm_flip_normals_exec().
|
static |
Definition at line 2242 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, C, CTX_data_view_layer(), CTX_wm_view3d(), edbm_flip_normals_custom_loop_normals(), edbm_flip_normals_face_winding(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), BMesh::totedgesel, BMesh::totfacesel, and BMesh::totvertsel.
Referenced by MESH_OT_flip_normals().
|
static |
Definition at line 2216 of file editmesh_tools.c.
References BMEditMesh::bm, BM_ELEM_SELECT, BM_loop_normal_editdata_array_free(), Object::data, EDBM_op_callf(), EDBM_update(), flip_custom_normals(), flip_custom_normals_init_data(), and NULL.
Referenced by edbm_flip_normals_exec().
|
static |
Definition at line 2435 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_mesh_hide(), EDBM_update(), MEM_freeN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, BMEditMesh::selectmode, BMesh::totedge, BMesh::totedgesel, BMesh::totface, BMesh::totfacesel, BMesh::totvert, and BMesh::totvertsel.
Referenced by MESH_OT_hide().
|
static |
Definition at line 4196 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_report(), BMEditMesh::bm, bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_EDGE, bm_edge_seg_isect(), BM_EDGES_OF_MESH, BM_elem_flag_test, BM_elem_index_get, BM_elem_index_set, BM_ELEM_SELECT, BM_ITER_MESH, BM_ITER_MESH_INDEX, BM_VERT, BM_VERTS_OF_MESH, BMO_edge_flag_set, BMO_op_exec(), BMO_slot_bool_set(), BMO_slot_buffer_from_enabled_flag(), BMO_slot_float_set(), BMO_slot_get(), BMO_slot_int_set(), BMO_slot_map_float_insert(), C, BMVert::co, copy_v2_fl(), CTX_data_edit_object(), CTX_wm_region(), Object::data, ED_view3d_init_mats_rv3d(), ED_view3d_project_float_object(), EDBM_op_finish(), EDBM_op_init(), EDBM_update(), ELE_EDGE_CUT, ELEM, BMesh::elem_index_dirty, float(), KNIFE_MIDPOINT, KNIFE_MULTICUT, len, MEM_freeN, MEM_mallocN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, ARegion::regiondata, wmOperator::reports, RNA_BEGIN, RNA_collection_length(), RNA_END, RNA_float_get_array(), RNA_int_get(), RPT_ERROR, BMOperator::slots_in, SUBD_CORNER_STRAIGHT_CUT, BMesh::totvert, BMesh::totvertsel, BMEdge::v1, BMEdge::v2, V3D_PROJ_RET_OK, and V3D_PROJ_TEST_CLIP_NEAR.
Referenced by MESH_OT_knife_cut().
|
static |
Definition at line 1042 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_EDGES_OF_MESH, BM_elem_flag_disable, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SEAM, BM_ELEM_SELECT, BM_ITER_MESH, C, clear(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, ED_uvedit_live_unwrap(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), scene, and BMesh::totedgesel.
Referenced by MESH_OT_mark_seam().
|
static |
Definition at line 1126 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_EDGES_OF_MESH, BM_elem_flag_set, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_SMOOTH, BM_ITER_MESH, C, clear(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), BMesh::totedgesel, BMesh::totvertsel, BMEdge::v1, and BMEdge::v2.
Referenced by MESH_OT_mark_sharp().
|
static |
Definition at line 3373 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_assert, BMEditMesh::bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_ELEM_SELECT, C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_flag_disable_all(), EDBM_op_callf(), EDBM_update(), ELEM, MEM_freeN, merge_firstlast(), merge_target(), MESH_MERGE_CENTER, MESH_MERGE_COLLAPSE, MESH_MERGE_CURSOR, MESH_MERGE_FIRST, MESH_MERGE_LAST, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), SCE_SELECT_VERTEX, scene, BMEditMesh::selectmode, BMesh::totvertsel, and type.
Referenced by MESH_OT_merge().
|
static |
Definition at line 9011 of file editmesh_tools.c.
References C, and normals_split_merge().
Referenced by MESH_OT_merge_normals().
|
static |
Definition at line 9785 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_data_layer_add_named(), BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_ELEM_SELECT, BM_FACE, BM_face_select_set(), BM_FACES_OF_MESH, BM_ITER_MESH, BM_mesh_elem_index_ensure(), BM_select_history_clear(), BM_select_history_store, C, CD_PROP_INT32, CTX_data_view_layer(), CTX_wm_view3d(), CustomData_get_layer_index(), CustomData_get_n_offset(), CustomData_get_named_layer_index(), Object::data, EDBM_update(), MEM_freeN, MOD_WEIGHTEDNORMALS_FACEWEIGHT_CDLAYER_ID, OPERATOR_FINISHED, BMesh::pdata, wmOperator::ptr, RNA_boolean_get(), and RNA_enum_get().
Referenced by MESH_OT_mod_weighted_strength().
|
static |
Definition at line 2565 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, BM_loop_normal_editdata_array_free(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_callf(), EDBM_update(), flip_custom_normals(), flip_custom_normals_init_data(), MEM_freeN, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and BMesh::totfacesel.
Referenced by MESH_OT_normals_make_consistent().
|
static |
Definition at line 9330 of file editmesh_tools.c.
References absolute(), add_v3_v3(), BKE_editmesh_ensure_autosmooth(), BKE_editmesh_from_object(), BKE_editmesh_lnorspace_update(), BKE_lnor_space_custom_normal_to_data(), BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_assert, BMEditMesh::bm, bm, BM_elem_flag_test, BM_ELEM_SELECT, BM_FACES_OF_MESH, BM_ITER_MESH, BM_loop_normal_editdata_array_free(), BM_loop_normal_editdata_array_init(), C, BMLoopNorEditData::clnors_data, CLNORS_VALID_VEC_LEN, compare_v3v3(), copy_v3_v3(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_CLNOR_TOOLS_ADD, EDBM_CLNOR_TOOLS_COPY, EDBM_CLNOR_TOOLS_MULTIPLY, EDBM_CLNOR_TOOLS_PASTE, EDBM_CLNOR_TOOLS_RESET, EDBM_update(), BMLoopNorEditDataArray::lnor_editdata, BMesh::lnor_spacearr, BMLoopNorEditData::loc, BMLoopNorEditData::loop_index, MLoopNorSpaceArray::lspacearr, MEM_freeN, mul_v3_v3(), negate_v3(), BMLoopNorEditData::niloc, BMLoopNorEditData::nloc, BMFace::no, ToolSettings::normal_vector, normalize_v3(), OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, scene, Scene::toolsettings, BMesh::totfacesel, BMesh::totloop, BMLoopNorEditDataArray::totloop, BMesh::totvertsel, and zero_v3().
Referenced by MESH_OT_normals_tools().
|
static |
Definition at line 9501 of file editmesh_tools.c.
References C, CTX_wm_manager(), wmWindowManager::id, wmOperator::layout, normals_tools_draw_check_prop(), NULL, wmOperator::properties, ptr, RNA_pointer_create(), wmOperatorType::srna, wmOperator::type, and uiDefAutoButsRNA().
Referenced by MESH_OT_normals_tools().
|
static |
If in face-only select mode, switch to edge select mode so that an edge-only selection is not inconsistent state.
We need to run this for all objects, even when nothing is selected. This way we keep them in sync.
Definition at line 7582 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_bases_in_edit_mode_unique_data, BMEditMesh::bm, BM_EDGE, BM_ELEM_SELECT, BM_FACE, BM_mesh_elem_hflag_disable_all(), BM_VERT, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_selectmode_disable_multi_ex(), EDBM_update(), MEM_freeN, Base::object, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), SCE_SELECT_EDGE, SCE_SELECT_FACE, scene, ToolSettings::selectmode, BMOperator::slots_out, Scene::toolsettings, and BMesh::totedgesel.
Referenced by MESH_OT_offset_edge_loops().
|
static |
Definition at line 8718 of file editmesh_tools.c.
References C, CTX_data_edit_object(), Object::data, EDBM_update(), OPERATOR_CANCELLED, OPERATOR_FINISHED, point_normals_apply(), point_normals_cancel(), point_normals_init(), wmOperator::ptr, and RNA_float_get_array().
Referenced by MESH_OT_point_normals().
|
static |
Definition at line 8702 of file editmesh_tools.c.
References C, wmOperator::flag, OP_IS_MODAL_GRAB_CURSOR, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, point_normals_cancel(), point_normals_init(), point_normals_update_header(), and WM_event_add_modal_handler().
Referenced by MESH_OT_point_normals().
|
static |
Definition at line 8488 of file editmesh_tools.c.
References add_v3_v3(), BKE_editmesh_from_object(), BKE_report(), BMEditMesh::bm, bm, BM_elem_flag_test, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, bmesh_selected_verts_center_calc(), C, center, BMVert::co, copy_v3_v3(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), Scene::cursor, Object::data, ED_object_calc_active_center_for_editmode(), ED_view3d_cursor3d_update(), ED_view3d_win_to_3d_int(), EDBM_CLNOR_MODAL_CANCEL, EDBM_CLNOR_MODAL_CONFIRM, EDBM_CLNOR_MODAL_POINTTO_ALIGN, EDBM_CLNOR_MODAL_POINTTO_INVERT, EDBM_CLNOR_MODAL_POINTTO_RESET, EDBM_CLNOR_MODAL_POINTTO_SET_USE_3DCURSOR, EDBM_CLNOR_MODAL_POINTTO_SET_USE_SELECTED, EDBM_CLNOR_MODAL_POINTTO_SPHERIZE, EDBM_CLNOR_MODAL_POINTTO_USE_MOUSE, EDBM_CLNOR_MODAL_POINTTO_USE_OBJECT, EDBM_CLNOR_MODAL_POINTTO_USE_PIVOT, EDBM_CLNOR_POINTTO_MODE_COORDINATES, EDBM_CLNOR_POINTTO_MODE_MOUSE, EDBM_select_pick(), EDBM_update(), ELEM, EVT_MODAL_MAP, ISMOUSE_MOTION, Object::loc, View3DCursor::location, max, mid_v3_v3v3(), min, minmax_v3v3_v3(), MOUSEMOVE, wmEvent::mval, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, params, point_normals_apply(), point_normals_cancel(), point_normals_ensure(), point_normals_free(), point_normals_update_header(), wmOperator::ptr, wmOperator::reports, ret, RNA_enum_get(), RNA_enum_set(), RNA_property_boolean_get(), RNA_property_boolean_set(), RNA_property_float_get_array(), RNA_property_float_set_array(), RNA_struct_find_property(), RPT_WARNING, scene, SEL_OP_SET, Scene::toolsettings, ToolSettings::transform_pivot_point, wmOperator::type, wmEvent::type, v, V3D_AROUND_ACTIVE, V3D_AROUND_CENTER_BOUNDS, V3D_AROUND_CENTER_MEDIAN, V3D_AROUND_CURSOR, V3D_CURSOR_ORIENT_NONE, wmEvent::val, view3d_operator_needs_opengl(), WM_operator_poll(), and zero_v3().
Referenced by MESH_OT_point_normals().
|
static |
Definition at line 8761 of file editmesh_tools.c.
References C, CTX_wm_manager(), wmWindowManager::id, wmOperator::layout, NULL, point_normals_draw_check_prop(), wmOperator::properties, ptr, RNA_pointer_create(), wmOperatorType::srna, wmOperator::type, uiDefAutoButsRNA(), and uiLayoutSetPropSep().
Referenced by MESH_OT_point_normals().
|
static |
Definition at line 5389 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, BM_FACE, BM_VERT, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_flag_disable_all(), EDBM_op_finish(), EDBM_op_init(), EDBM_update(), MEM_freeN, offset, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), BMOperator::slots_out, and BMesh::totfacesel.
Referenced by MESH_OT_poke().
|
static |
Definition at line 5487 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_ELEM_SELECT, BM_FACE, BM_face_kill(), BMO_ITER, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_selectmode_flush(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), BMOperator::slots_out, and BMesh::totfacesel.
Referenced by MESH_OT_quads_convert_to_tris().
|
static |
Definition at line 3535 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_reportf(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_EDGE, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, BM_mesh_elem_hflag_enable_test(), BM_VERT, BMO_op_exec(), BMO_op_finish(), C, count, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_automerge(), EDBM_op_callf(), EDBM_op_finish(), EDBM_op_init(), EDBM_selectmode_flush(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_float_get(), RPT_INFO, SCE_SELECT_EDGE, SCE_SELECT_VERTEX, BMEditMesh::selectmode, threshold, BMesh::totvert, and BMesh::totvertsel.
Referenced by MESH_OT_remove_doubles().
|
static |
Definition at line 433 of file editmesh_tools.c.
References BKE_reportf(), and RPT_INFO.
Referenced by edbm_delete_loose_exec(), and edbm_dissolve_degenerate_exec().
|
static |
Definition at line 2516 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_mesh_reveal(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and select().
Referenced by MESH_OT_reveal().
|
static |
Definition at line 3132 of file editmesh_tools.c.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_MASK_COLOR, BKE_editmesh_from_object(), BKE_id_attribute_domain(), BKE_id_attribute_to_index(), BKE_id_attributes_active_color_get(), BKE_object_get_original_mesh(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, BMO_op_exec(), C, CD_MASK_COLOR_ALL, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_update(), Mesh::id, MEM_freeN, OPERATOR_FINISHED, and BMesh::totfacesel.
Referenced by MESH_OT_colors_reverse().
|
static |
Definition at line 3041 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, BMO_op_exec(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, and BMesh::totfacesel.
Referenced by MESH_OT_uvs_reverse().
|
static |
Definition at line 3076 of file editmesh_tools.c.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_MASK_COLOR, BKE_editmesh_from_object(), BKE_id_attribute_domain(), BKE_id_attribute_to_index(), BKE_id_attributes_active_color_get(), BKE_object_get_original_mesh(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, BMO_op_exec(), C, CD_MASK_COLOR_ALL, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_update(), Mesh::id, MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and BMesh::totfacesel.
Referenced by MESH_OT_colors_rotate().
|
static |
Definition at line 3002 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, BMO_op_exec(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and BMesh::totfacesel.
Referenced by MESH_OT_uvs_rotate().
|
static |
Definition at line 4677 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_id_is_editable(), BKE_report(), BKE_view_layer_array_from_bases_in_edit_mode_unique_data, BLI_assert, BMEditMesh::bm, bm_mesh_allocsize_default, BM_mesh_bm_from_me(), BM_mesh_bm_to_me(), BM_mesh_create(), BM_mesh_free(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_operator_editmesh(), ED_outliner_select_sync_from_object_tag(), EDBM_update(), Mesh::id, ID_RECALC_GEOMETRY_ALL_MODES, MEM_freeN, MESH_SEPARATE_LOOSE, mesh_separate_loose(), MESH_SEPARATE_MATERIAL, mesh_separate_material(), MESH_SEPARATE_SELECTED, mesh_separate_selected(), NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, NULL, OB_MESH, Base::object, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, scene, BMesh::totedgesel, BMesh::totfacesel, BMesh::totvertsel, type, Object::type, and WM_event_add_notifier().
Referenced by MESH_OT_separate().
|
static |
Definition at line 9549 of file editmesh_tools.c.
References BKE_editmesh_ensure_autosmooth(), BKE_editmesh_from_object(), BKE_editmesh_lnorspace_update(), BKE_lnor_space_custom_normal_to_data(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_BITMAP_ENABLE, BLI_BITMAP_NEW, BLI_BITMAP_TEST, BMEditMesh::bm, bm, BM_EDGES_OF_FACE, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_elem_index_get, BM_ELEM_SELECT, BM_ELEM_SMOOTH, BM_face_vert_share_loop(), BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_MESH, BM_ITER_MESH_INDEX, BM_LOOPS_OF_VERT, BM_vert_calc_normal_ex(), BM_VERTS_OF_EDGE, BM_VERTS_OF_MESH, C, CD_CUSTOMLOOPNORMAL, CTX_data_view_layer(), CTX_wm_view3d(), CustomData_get_offset(), Object::data, e, EDBM_update(), MLoopNorSpace::flags, float(), is_zero_v3(), l, BMesh::ldata, LinkNode::link, BMesh::lnor_spacearr, MLoopNorSpace::loops, MLoopNorSpaceArray::lspacearr, MEM_freeN, MEM_mallocN, MLNOR_SPACE_IS_SINGLE, LinkNode::next, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), BMesh::totfacesel, BMesh::totloop, BMesh::totvert, BMLoop::v, and v.
Referenced by MESH_OT_set_normals_from_faces().
|
static |
Definition at line 3687 of file editmesh_tools.c.
References BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_update(), Mesh::edit_mesh, MEM_freeN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, shape_propagate(), and BMesh::totvertsel.
Referenced by MESH_OT_shape_propagate_to_all().
|
static |
Definition at line 9664 of file editmesh_tools.c.
References add_v3_v3(), BKE_editmesh_ensure_autosmooth(), BKE_editmesh_from_object(), BKE_editmesh_lnorspace_update(), BKE_lnor_space_custom_data_to_normal(), BKE_lnor_space_custom_normal_to_data(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_ELEM_CD_GET_VOID_P, BM_elem_index_get, BM_FACES_OF_VERT, BM_ITER_ELEM, BM_loop_normal_editdata_array_free(), BM_loop_normal_editdata_array_init(), BM_LOOPS_OF_FACE, C, BMLoopNorEditDataArray::cd_custom_normal_offset, BMLoopNorEditData::clnors_data, CLNORS_VALID_VEC_LEN, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_update(), float(), l, BMLoopNorEditDataArray::lnor_editdata, BMesh::lnor_spacearr, BMLoopNorEditData::loop, BMLoopNorEditData::loop_index, MLoopNorSpaceArray::lspacearr, MEM_callocN, MEM_freeN, mul_v3_fl(), normalize_v3(), OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), BMLoopNorEditDataArray::totloop, and BMLoop::v.
Referenced by MESH_OT_smooth_normals().
|
static |
Definition at line 3937 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_ELEM_SELECT, BM_FACE, BMO_op_exec(), BMO_slot_buffer_hflag_disable(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), BMOperator::slots_in, BMOperator::slots_out, and BMesh::totfacesel.
Referenced by MESH_OT_solidify().
|
static |
Definition at line 7053 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_ghashutil_strhash_p(), BMEditMesh::bm, bm, BM_EDGE, BM_ELEM_SELECT, BM_FACE, BM_VERT, C, CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), ED_view3d_context_rv3d(), ELEM, Object::id, MEM_freeN, ID::name, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RNA_enum_set(), RNA_int_get(), RNA_property_enum_get(), RNA_property_is_set(), RNA_struct_find_property(), RPT_ERROR, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, scene, seed, BMEditMesh::selectmode, sort_bmelem_flag(), SRT_VIEW_XAXIS, SRT_VIEW_ZAXIS, BMesh::totedgesel, BMesh::totfacesel, and BMesh::totvertsel.
Referenced by MESH_OT_sort_elements().
|
static |
Definition at line 7122 of file editmesh_tools.c.
References ELEM, wmOperator::ptr, RNA_enum_get(), RNA_property_identifier(), SRT_RANDOMIZE, SRT_REVERSE, and STREQ.
Referenced by MESH_OT_sort_elements().
|
static |
Definition at line 6498 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ALL_NOLOOP, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_EDGE, BM_ELEM_SELECT, BM_FACE, BM_mesh_elem_hflag_disable_all(), BM_VERT, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, BMOperator::slots_out, BMesh::totedgesel, BMesh::totfacesel, and BMesh::totvertsel.
Referenced by MESH_OT_split().
|
static |
Definition at line 9031 of file editmesh_tools.c.
References C, and normals_split_merge().
Referenced by MESH_OT_split_normals().
|
static |
Definition at line 290 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), EdgeRingOpSubdProps::cuts, Object::data, EDBM_op_callf(), EDBM_update(), EdgeRingOpSubdProps::interp_mode, MEM_freeN, mesh_operator_edgering_props_get(), OPERATOR_FINISHED, EdgeRingOpSubdProps::profile_shape, EdgeRingOpSubdProps::profile_shape_factor, EdgeRingOpSubdProps::smooth, and BMesh::totedgesel.
Referenced by MESH_OT_subdivide_edgering().
|
static |
Definition at line 82 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, BM_mesh_esubdivide(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_enum_set(), RNA_float_get(), RNA_int_get(), seed, smooth(), SUBD_CORNER_INNERVERT, SUBD_CORNER_STRAIGHT_CUT, SUBD_FALLOFF_LIN, SUBDIV_SELECT_ORIG, BMesh::totedgesel, and BMesh::totfacesel.
Referenced by MESH_OT_subdivide().
|
static |
Definition at line 5583 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG2RADF, EDBM_mesh_stats_multi(), EDBM_op_call_and_selectf(), EDBM_update(), MEM_freeN, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_property_float_get(), RNA_property_is_set(), RNA_struct_find_property(), and BMesh::totfacesel.
Referenced by MESH_OT_tris_convert_to_quads().
|
static |
Definition at line 358 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode, BMEditMesh::bm, BM_ELEM_SELECT, BMO_op_exec(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_selectmode_flush(), EDBM_selectmode_flush_ex(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), SCE_SELECT_VERTEX, BMEditMesh::selectmode, BMesh::totedgesel, BMesh::totfacesel, and BMesh::totvertsel.
Referenced by MESH_OT_unsubdivide().
|
static |
Definition at line 1656 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_call_and_selectf(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, and BMesh::totfacesel.
Referenced by MESH_OT_vert_connect_concave().
|
static |
Definition at line 1313 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, edbm_connect_vert_pair(), MEM_freeN, OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MESH_OT_vert_connect().
|
static |
Definition at line 1707 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ELEM_SELECT, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_call_and_selectf(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and BMesh::totfacesel.
Referenced by MESH_OT_vert_connect_nonplanar().
|
static |
Definition at line 1560 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_report(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BLI_listbase_is_empty(), BMEditMesh::bm, bm, BM_custom_loop_normals_from_vector_layer(), BM_custom_loop_normals_to_vector_layer(), BM_EDGE, BM_select_history_clear(), bm_vert_connect_select_history(), bm_vert_connect_select_history_edge_to_vert_path(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, edbm_connect_vert_pair(), EDBM_selectmode_flush(), EDBM_update(), ListBase::first, BMEditSelection::htype, MEM_freeN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, BMesh::selected, SWAP, and BMesh::totvertsel.
Referenced by MESH_OT_vert_connect_path().
|
static |
Definition at line 7468 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_EDGE, BM_ELEM_SELECT, BM_FACE, BM_mesh_elem_hflag_disable_all(), BM_VERT, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_op_finish(), EDBM_op_init(), EDBM_update(), MEM_freeN, offset, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), BMOperator::slots_out, and BMesh::totfacesel.
Referenced by MESH_OT_wireframe().
|
static |
Definition at line 2108 of file editmesh_tools.c.
References BKE_lnor_space_custom_normal_to_data(), BLI_assert, bm, BM_elem_flag_test, BM_elem_index_get, BM_ELEM_SELECT, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_MESH, BM_lnorspace_update(), BM_loop_normal_editdata_array_free(), BM_loop_normal_editdata_array_init(), BM_SPACEARR_DIRTY_ALL, BMLoopNorEditData::clnors_data, l, BMLoopNorEditDataArray::lidx_to_lnor_editdata, BMLoopNorEditDataArray::lnor_editdata, BMesh::lnor_spacearr, BMLoopNorEditData::loop_index, MLoopNorSpaceArray::lspacearr, negate_v3(), BMLoopNorEditData::nloc, NULL, BMLoop::prev, BMesh::spacearr_dirty, and BMLoopNorEditDataArray::totloop.
Referenced by edbm_flip_normals_face_winding(), and edbm_normals_make_consistent_exec().
|
static |
Definition at line 2094 of file editmesh_tools.c.
References bm, BM_lnorspace_update(), BM_loop_normal_editdata_array_init(), CD_CUSTOMLOOPNORMAL, CustomData_has_layer(), BMesh::ldata, and NULL.
Referenced by edbm_flip_normals_face_winding(), and edbm_normals_make_consistent_exec().
|
static |
Definition at line 5668 of file editmesh_tools.c.
References DEG2RADF, NULL, ot, RNA_def_boolean(), RNA_def_float_rotation(), RNA_def_property_float_default(), and wmOperatorType::srna.
Referenced by MESH_OT_tris_convert_to_quads().
|
static |
Definition at line 3267 of file editmesh_tools.c.
References BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_SELECT, BM_VERT, BMVert::co, EDBM_op_callf(), BMEditSelection::ele, ListBase::first, ListBase::last, and BMesh::selected.
Referenced by edbm_merge_exec().
|
static |
Definition at line 3317 of file editmesh_tools.c.
References add_v3_v3(), BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, BMVert::co, copy_v3_v3(), Scene::cursor, EDBM_op_callf(), float(), Object::imat, invert_m4_m4(), View3DCursor::location, mul_m4_v3(), mul_v3_fl(), NULL, Object::obmat, scene, and v.
Referenced by edbm_merge_exec().
|
static |
Definition at line 3452 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BMEditMesh::bm, BM_VERT, C, CTX_data_edit_object(), ListBase::first, ListBase::last, merge_type_items, MESH_MERGE_CENTER, MESH_MERGE_COLLAPSE, MESH_MERGE_CURSOR, MESH_MERGE_FIRST, MESH_MERGE_LAST, NULL, OB_MESH, RNA_enum_item_end(), RNA_enum_items_add_value(), SCE_SELECT_VERTEX, BMesh::selected, BMEditMesh::selectmode, and Object::type.
Referenced by MESH_OT_merge().
|
static |
Definition at line 233 of file editmesh_tools.c.
References BLT_I18NCONTEXT_ID_CURVE_LEGACY, NULL, ot, PROP_ENUM, PROP_NONE, PROP_SKIP_SAVE, PROP_SMOOTH, RNA_def_enum(), RNA_def_float(), RNA_def_int(), RNA_def_property(), RNA_def_property_enum_default(), RNA_def_property_enum_items(), RNA_def_property_flag(), RNA_def_property_translation_context(), RNA_def_property_ui_text(), rna_enum_proportional_falloff_curve_only_items, wmOperatorType::srna, SUBD_RING_INTERP_LINEAR, SUBD_RING_INTERP_PATH, and SUBD_RING_INTERP_SURF.
Referenced by MESH_OT_bridge_edge_loops(), and MESH_OT_subdivide_edgering().
|
static |
Definition at line 280 of file editmesh_tools.c.
References EdgeRingOpSubdProps::cuts, EdgeRingOpSubdProps::interp_mode, EdgeRingOpSubdProps::profile_shape, EdgeRingOpSubdProps::profile_shape_factor, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), RNA_int_get(), and EdgeRingOpSubdProps::smooth.
Referenced by edbm_bridge_edge_loops_for_single_editmesh(), and edbm_subdivide_edge_ring_exec().
void MESH_OT_average_normals | ( | struct wmOperatorType * | ot | ) |
Definition at line 9264 of file editmesh_tools.c.
References average_method_items, wmOperatorType::description, ED_operator_editmesh(), edbm_average_normals_exec(), edbm_average_normals_ui(), EDBM_CLNOR_AVERAGE_LOOP, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_float(), RNA_def_int(), wmOperatorType::srna, and wmOperatorType::ui.
Referenced by ED_operatortypes_mesh().
void MESH_OT_beautify_fill | ( | wmOperatorType * | ot | ) |
Definition at line 5353 of file editmesh_tools.c.
References DEG2RADF, wmOperatorType::description, ED_operator_editmesh(), edbm_beautify_fill_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_rotation(), RNA_def_property_float_default(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_blend_from_shape | ( | wmOperatorType * | ot | ) |
Definition at line 3903 of file editmesh_tools.c.
References wmOperatorType::description, DummyRNA_NULL_items, ED_operator_editmesh(), edbm_blend_from_shape_exec(), edbm_blend_from_shape_ui(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_ENUM_NO_TRANSLATE, PROP_NEVER_UNLINK, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_float(), RNA_def_property_flag(), shape_itemf(), wmOperatorType::srna, and wmOperatorType::ui.
Referenced by ED_operatortypes_mesh().
void MESH_OT_bridge_edge_loops | ( | wmOperatorType * | ot | ) |
Definition at line 7419 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_bridge_edge_loops_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MESH_BRIDGELOOP_CLOSED, MESH_BRIDGELOOP_PAIRS, MESH_BRIDGELOOP_SINGLE, mesh_operator_edgering_props(), wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_colors_reverse | ( | wmOperatorType * | ot | ) |
Definition at line 3233 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_reverse_colors_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_colors_rotate | ( | wmOperatorType * | ot | ) |
Definition at line 3215 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_rotate_colors_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_decimate | ( | wmOperatorType * | ot | ) |
Definition at line 5883 of file editmesh_tools.c.
References wmOperatorType::check, wmOperatorType::description, ED_operator_editmesh(), edbm_decimate_check(), edbm_decimate_exec(), edbm_decimate_ui(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), rna_enum_axis_xyz_items, wmOperatorType::srna, and wmOperatorType::ui.
Referenced by ED_operatortypes_mesh().
void MESH_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 533 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_delete_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MESH_DELETE_EDGE, MESH_DELETE_EDGE_FACE, MESH_DELETE_FACE, MESH_DELETE_ONLY_FACE, MESH_DELETE_VERT, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_mesh().
void MESH_OT_delete_edgeloop | ( | wmOperatorType * | ot | ) |
Definition at line 6471 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_delete_edgeloop_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_delete_loose | ( | wmOperatorType * | ot | ) |
Definition at line 669 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_delete_loose_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_dissolve_degenerate | ( | wmOperatorType * | ot | ) |
Definition at line 6381 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_dissolve_degenerate_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_distance(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_dissolve_edges | ( | wmOperatorType * | ot | ) |
Definition at line 6068 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_dissolve_edges_exec(), edbm_dissolve_prop__use_face_split(), edbm_dissolve_prop__use_verts(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_dissolve_faces | ( | wmOperatorType * | ot | ) |
Definition at line 6133 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_dissolve_faces_exec(), edbm_dissolve_prop__use_verts(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_dissolve_limited | ( | wmOperatorType * | ot | ) |
Definition at line 6283 of file editmesh_tools.c.
References BMO_DELIM_NORMAL, DEG2RADF, wmOperatorType::description, ED_operator_editmesh(), edbm_dissolve_limited_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum_flag(), RNA_def_float_rotation(), RNA_def_property_float_default(), rna_enum_mesh_delimit_mode_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_dissolve_mode | ( | wmOperatorType * | ot | ) |
Definition at line 6179 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_dissolve_mode_exec(), edbm_dissolve_prop__use_boundary_tear(), edbm_dissolve_prop__use_face_split(), edbm_dissolve_prop__use_verts(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and PROP_SKIP_SAVE.
Referenced by ED_operatortypes_mesh().
void MESH_OT_dissolve_verts | ( | wmOperatorType * | ot | ) |
Definition at line 6001 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_dissolve_prop__use_boundary_tear(), edbm_dissolve_prop__use_face_split(), edbm_dissolve_verts_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 2077 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_duplicate_exec(), edbm_duplicate_invoke(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, and TFM_TRANSLATION.
Referenced by ED_operatortypes_mesh().
void MESH_OT_edge_collapse | ( | wmOperatorType * | ot | ) |
Definition at line 726 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_collapse_edge_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_edge_face_add | ( | wmOperatorType * | ot | ) |
Definition at line 1021 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_add_edge_face_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_edge_rotate | ( | wmOperatorType * | ot | ) |
Definition at line 2411 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_edge_rotate_selected_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_edge_split | ( | wmOperatorType * | ot | ) |
Definition at line 1978 of file editmesh_tools.c.
References BM_EDGE, BM_VERT, wmOperatorType::description, ED_operator_editmesh(), edbm_edge_split_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, merge_type_items, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_face_make_planar | ( | wmOperatorType * | ot | ) |
Definition at line 1819 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_face_make_planar_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_faces_shade_flat | ( | wmOperatorType * | ot | ) |
Definition at line 2981 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_faces_shade_flat_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_faces_shade_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 2933 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_faces_shade_smooth_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_fill | ( | wmOperatorType * | ot | ) |
Definition at line 4898 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_fill_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_fill_grid | ( | wmOperatorType * | ot | ) |
Definition at line 5188 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_fill_grid_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_fill_holes | ( | wmOperatorType * | ot | ) |
Definition at line 5264 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_fill_holes_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_flip_normals | ( | wmOperatorType * | ot | ) |
Definition at line 2273 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_flip_normals_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_hide | ( | wmOperatorType * | ot | ) |
Definition at line 2491 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_hide_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_knife_cut | ( | wmOperatorType * | ot | ) |
Definition at line 4325 of file editmesh_tools.c.
References wmOperatorType::description, edbm_knife_cut_exec(), EDBM_view3d_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, KNIFE_EXACT, knife_items, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_collection_runtime(), RNA_def_enum(), RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, WM_CURSOR_KNIFE, WM_CURSOR_NUM, WM_gesture_lines_invoke(), and WM_gesture_lines_modal().
void MESH_OT_mark_seam | ( | wmOperatorType * | ot | ) |
Definition at line 1098 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_mark_seam_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operatortype_props_advanced_begin().
Referenced by ED_operatortypes_mesh().
void MESH_OT_mark_sharp | ( | wmOperatorType * | ot | ) |
Definition at line 1172 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_mark_sharp_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_merge | ( | wmOperatorType * | ot | ) |
Definition at line 3504 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_merge_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, merge_type_itemf(), merge_type_items, MESH_MERGE_CENTER, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), wmOperatorType::srna, WM_menu_invoke(), and WM_operatortype_props_advanced_begin().
Referenced by ED_operatortypes_mesh().
void MESH_OT_merge_normals | ( | struct wmOperatorType * | ot | ) |
Definition at line 9016 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_merge_normals_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_mod_weighted_strength | ( | struct wmOperatorType * | ot | ) |
Definition at line 9855 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_mod_weighted_strength_exec(), wmOperatorType::exec, FACE_STRENGTH_MEDIUM, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_mesh_face_strength_types, RNA_def_boolean(), RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_normals_make_consistent | ( | wmOperatorType * | ot | ) |
Definition at line 2612 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_normals_make_consistent_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_normals_tools | ( | struct wmOperatorType * | ot | ) |
Definition at line 9513 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), EDBM_CLNOR_TOOLS_COPY, edbm_normals_tools_exec(), edbm_normals_tools_ui(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, normal_vector_tool_items, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, and wmOperatorType::ui.
Referenced by ED_operatortypes_mesh().
void MESH_OT_offset_edge_loops | ( | wmOperatorType * | ot | ) |
Definition at line 7641 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_offset_edgeloop_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_point_normals | ( | struct wmOperatorType * | ot | ) |
Definition at line 8775 of file editmesh_tools.c.
References wmOperatorType::cancel, clnors_pointto_mode_items, wmOperatorType::description, ED_operator_editmesh(), EDBM_CLNOR_POINTTO_MODE_COORDINATES, edbm_point_normals_exec(), edbm_point_normals_invoke(), edbm_point_normals_modal(), edbm_point_normals_ui(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, ot, point_normals_cancel(), wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), RNA_def_float_vector_xyz(), RNA_def_property_flag(), wmOperatorType::srna, and wmOperatorType::ui.
Referenced by ED_operatortypes_mesh().
void MESH_OT_poke | ( | wmOperatorType * | ot | ) |
Definition at line 5441 of file editmesh_tools.c.
References BMOP_POKE_BOUNDS, BMOP_POKE_MEDIAN, BMOP_POKE_MEDIAN_WEIGHTED, wmOperatorType::description, ED_operator_editmesh(), edbm_poke_face_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_distance(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_quads_convert_to_tris | ( | wmOperatorType * | ot | ) |
Definition at line 5549 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_quads_convert_to_tris_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MOD_TRIANGULATE_NGON_BEAUTY, MOD_TRIANGULATE_QUAD_BEAUTY, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), rna_enum_modifier_triangulate_ngon_method_items, rna_enum_modifier_triangulate_quad_method_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_remove_doubles | ( | wmOperatorType * | ot | ) |
Definition at line 3620 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_remove_doubles_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float_distance(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_reveal | ( | wmOperatorType * | ot | ) |
Definition at line 2542 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_reveal_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_separate | ( | wmOperatorType * | ot | ) |
Definition at line 4800 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_scene_editable(), edbm_separate_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MESH_SEPARATE_LOOSE, MESH_SEPARATE_MATERIAL, MESH_SEPARATE_SELECTED, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_mesh().
void MESH_OT_set_normals_from_faces | ( | struct wmOperatorType * | ot | ) |
Definition at line 9641 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_set_normals_from_faces_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_shape_propagate_to_all | ( | wmOperatorType * | ot | ) |
Definition at line 3731 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_shape_propagate_to_all_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_smooth_normals | ( | struct wmOperatorType * | ot | ) |
Definition at line 9754 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_smooth_normals_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_solidify | ( | wmOperatorType * | ot | ) |
Definition at line 3988 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_solidify_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_distance(), RNA_def_property_ui_range(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_sort_elements | ( | wmOperatorType * | ot | ) |
Definition at line 7148 of file editmesh_tools.c.
References BM_EDGE, BM_FACE, BM_VERT, wmOperatorType::description, ED_operator_editmesh(), edbm_sort_elements_exec(), edbm_sort_elements_poll_property(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::poll_property, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_flag(), RNA_def_int(), wmOperatorType::srna, SRT_CURSOR_DISTANCE, SRT_MATERIAL, SRT_RANDOMIZE, SRT_REVERSE, SRT_SELECTED, SRT_VIEW_XAXIS, SRT_VIEW_ZAXIS, and WM_menu_invoke().
Referenced by ED_operatortypes_mesh().
void MESH_OT_split | ( | wmOperatorType * | ot | ) |
Definition at line 6538 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_split_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_split_normals | ( | struct wmOperatorType * | ot | ) |
Definition at line 9036 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_split_normals_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_subdivide | ( | wmOperatorType * | ot | ) |
Definition at line 146 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_subdivide_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, prop_mesh_cornervert_types, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, SUBD_CORNER_STRAIGHT_CUT, and WM_operatortype_props_advanced_begin().
Referenced by ED_operatortypes_mesh().
void MESH_OT_subdivide_edgering | ( | wmOperatorType * | ot | ) |
Definition at line 334 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_subdivide_edge_ring_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_operator_edgering_props(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_symmetrize | ( | struct wmOperatorType * | ot | ) |
Definition at line 7856 of file editmesh_tools.c.
References BMO_SYMMETRIZE_NEGATIVE_X, wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_symmetrize_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_float(), rna_enum_symmetrize_direction_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_symmetry_snap | ( | struct wmOperatorType * | ot | ) |
Definition at line 8021 of file editmesh_tools.c.
References BMO_SYMMETRIZE_NEGATIVE_X, wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_symmetry_snap_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), RNA_def_float_distance(), rna_enum_symmetrize_direction_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_tris_convert_to_quads | ( | wmOperatorType * | ot | ) |
Definition at line 5703 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_tris_convert_to_quads_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, join_triangle_props(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_unsubdivide | ( | wmOperatorType * | ot | ) |
Definition at line 399 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_unsubdivide_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_uvs_reverse | ( | wmOperatorType * | ot | ) |
Definition at line 3197 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_reverse_uvs_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_uvs_rotate | ( | wmOperatorType * | ot | ) |
Definition at line 3179 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_rotate_uvs_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_vert_connect | ( | wmOperatorType * | ot | ) |
Definition at line 1333 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_vert_connect_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_vert_connect_concave | ( | wmOperatorType * | ot | ) |
Definition at line 1686 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_vert_connect_concave_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_vert_connect_nonplanar | ( | wmOperatorType * | ot | ) |
Definition at line 1745 of file editmesh_tools.c.
References DEG2RADF, wmOperatorType::description, ED_operator_editmesh(), edbm_vert_connect_nonplaner_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_rotation(), RNA_def_property_float_default(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_vert_connect_path | ( | wmOperatorType * | ot | ) |
Definition at line 1635 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_vert_connect_path_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_vertices_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 2729 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_do_smooth_vertex_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_float_factor(), RNA_def_int(), wmOperatorType::srna, WM_operator_type_modal_from_exec_for_object_edit_coords(), and WM_operatortype_props_advanced_begin().
Referenced by ED_operatortypes_mesh().
void MESH_OT_vertices_smooth_laplacian | ( | wmOperatorType * | ot | ) |
Definition at line 2844 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_do_smooth_laplacian_vertex_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float(), RNA_def_int(), wmOperatorType::srna, and WM_operatortype_props_advanced_begin().
Referenced by ED_operatortypes_mesh().
void MESH_OT_wireframe | ( | wmOperatorType * | ot | ) |
Definition at line 7532 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edbm_wireframe_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float(), RNA_def_float_distance(), RNA_def_property_ui_range(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
|
static |
Definition at line 4419 of file editmesh_tools.c.
References BA_SELECT, BKE_object_material_array_assign(), BKE_object_material_array_p(), BKE_object_material_len_p(), BM_ALL, BM_custom_loop_normals_from_vector_layer(), BM_mesh_bm_to_me(), BM_mesh_copy_arrays(), BM_mesh_copy_init_customdata(), BM_mesh_copy_init_customdata_all_layers(), BM_mesh_create(), BM_mesh_free(), BM_vert_kill(), Object::data, ED_object_add_duplicate(), ED_object_base_select(), faces, BMesh::lnor_spacearr, NULL, Base::object, scene, BMAllocTemplate::totvert, USER_DUP_ACT, USER_DUP_MESH, and verts.
Referenced by mesh_separate_loose().
|
static |
Definition at line 4607 of file editmesh_tools.c.
References BM_custom_loop_normals_to_vector_layer(), BM_EDGE, BM_ELEM_SELECT, BM_FACE, BM_mesh_bm_to_me(), BM_mesh_calc_edge_groups_as_arrays(), BM_mesh_elem_hflag_disable_all(), BM_VERT, Object::data, ED_mesh_geometry_clear(), MEM_freeN, MEM_mallocN, mesh_separate_arrays(), NULL, Base::object, result, scene, BMesh::totedge, BMesh::totface, BMesh::totvert, and UNPACK3.
Referenced by edbm_separate_exec().
|
static |
Definition at line 4554 of file editmesh_tools.c.
References BM_EDGE, BM_elem_flag_enable, BM_ELEM_TAG, BM_FACE, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_iter_at_index(), BM_ITER_MESH, BM_mesh_elem_hflag_disable_all(), BM_VERT, BMLoop::e, BMFace::mat_nr, mesh_separate_material_assign_mat_nr(), mesh_separate_tagged(), BMLoop::next, NULL, Base::object, result, scene, BMesh::totface, and BMLoop::v.
Referenced by edbm_separate_exec().
|
static |
Sets an object to a single material. from one of its slots.
Definition at line 4504 of file editmesh_tools.c.
References BKE_id_material_array_p(), BKE_id_material_clear(), BKE_id_material_len_p(), BKE_id_material_resize(), BKE_object_material_resize(), BLI_assert, Object::data, id_us_plus(), Object::mat, Object::matbits, and NULL.
Referenced by mesh_separate_material().
|
static |
Definition at line 4485 of file editmesh_tools.c.
References BM_EDGE, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, BM_mesh_elem_hflag_disable_all(), BM_mesh_elem_hflag_enable_test(), BM_VERT, mesh_separate_tagged(), NULL, and scene.
Referenced by edbm_separate_exec().
|
static |
TODO: Use mesh_separate_arrays since it's more efficient.
Definition at line 4365 of file editmesh_tools.c.
References BA_SELECT, BKE_object_material_array_assign(), BKE_object_material_array_p(), BKE_object_material_len_p(), BM_EDGE, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, bm_mesh_allocsize_default, BM_mesh_bm_to_me(), BM_mesh_copy_init_customdata(), BM_mesh_create(), BM_mesh_elem_hflag_disable_all(), BM_mesh_elem_toolflags_ensure(), BM_mesh_free(), BM_mesh_normals_update(), BM_VERT, BMO_FLAG_DEFAULTS, BMO_FLAG_RESPECT_HIDE, BMO_op_callf(), Object::data, DEL_FACES, ED_object_add_duplicate(), ED_object_base_select(), NULL, Base::object, scene, USER_DUP_ACT, and USER_DUP_MESH.
Referenced by mesh_separate_material(), and mesh_separate_selected().
|
static |
Definition at line 2890 of file editmesh_tools.c.
References BMEditMesh::bm, BM_elem_flag_set, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_SMOOTH, BM_FACES_OF_MESH, BM_ITER_MESH, NULL, and smooth().
Referenced by edbm_faces_shade_flat_exec(), edbm_faces_shade_smooth_exec(), and normals_split_merge().
|
static |
Definition at line 7809 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, BM_ALL_NOLOOP, BM_ELEM_SELECT, BMO_op_exec(), BMO_slot_buffer_hflag_enable(), C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_flag_disable_all(), EDBM_op_finish(), EDBM_op_init(), EDBM_selectmode_flush(), EDBM_update(), MEM_freeN, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), BMOperator::slots_out, and BMesh::totvertsel.
Referenced by MESH_OT_symmetrize().
|
static |
Definition at line 7893 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BKE_reportf(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_TAG, BM_ITER_MESH_INDEX, BM_mesh_elem_hflag_disable_all(), BM_mesh_elem_table_ensure(), BM_VERT, BM_vert_at_index(), BM_VERTS_OF_MESH, C, BMVert::co, copy_v3_v3(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, EDBM_update(), EDBM_verts_mirror_cache_begin_ex(), eps, fabsf, interp_v3_v3v3(), len_squared_v3v3(), MEM_freeN, MEM_mallocN, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), RPT_INFO, RPT_WARNING, SWAP, BMesh::totvert, BMesh::totvertsel, and v.
Referenced by MESH_OT_symmetry_snap().
|
static |
Definition at line 8836 of file editmesh_tools.c.
References add_v3_v3(), BKE_lnor_space_custom_normal_to_data(), BLI_assert, BLI_SMALLSTACK_DECLARE, BLI_SMALLSTACK_IS_EMPTY, BLI_SMALLSTACK_POP, BLI_SMALLSTACK_PUSH, bm, BM_elem_flag_enable, BM_elem_flag_test, BM_elem_index_get, BM_ELEM_TAG, BM_normals_loops_edges_tag(), BMLoopNorEditData::clnors_data, CLNORS_VALID_VEC_LEN, MLoopNorSpaceArray::data_type, MLoopNorSpace::flags, l, BMLoopNorEditDataArray::lidx_to_lnor_editdata, LinkNode::link, BMLoopNorEditDataArray::lnor_editdata, BMesh::lnor_spacearr, BMLoopNorEditData::loop, BMLoopNorEditData::loop_index, MLoopNorSpace::loops, MLoopNorSpaceArray::lspacearr, MLNOR_SPACE_IS_SINGLE, MLNOR_SPACEARR_BMLOOP_PTR, LinkNode::next, BMLoopNorEditData::nloc, normalize_v3(), BMLoopNorEditDataArray::totloop, and zero_v3().
Referenced by normals_split_merge().
Definition at line 8881 of file editmesh_tools.c.
References add_v3_v3(), BKE_lnor_space_custom_normal_to_data(), BLI_assert, BLI_SMALLSTACK_DECLARE, BLI_SMALLSTACK_IS_EMPTY, BLI_SMALLSTACK_POP, BLI_SMALLSTACK_PUSH, bm, BM_ELEM_CD_GET_VOID_P, BM_elem_flag_test, BM_elem_index_get, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_MESH, BM_loop_check_cyclic_smooth_fan(), BM_normals_loops_edges_tag(), BM_vert_step_fan_loop(), CD_CUSTOMLOOPNORMAL, CLNORS_VALID_VEC_LEN, CustomData_get_offset(), MLoopNorSpaceArray::data_type, BMLoop::e, BMLoop::f, l, BMesh::ldata, BMesh::lnor_spacearr, MLoopNorSpaceArray::lspacearr, MLNOR_SPACEARR_BMLOOP_PTR, BMLoop::next, BMFace::no, normalize_v3(), BMLoop::prev, UNUSED_VARS_NDEBUG, BMLoop::v, and zero_v3().
Referenced by normals_split_merge().
Definition at line 8953 of file editmesh_tools.c.
References BKE_editmesh_ensure_autosmooth(), BKE_editmesh_from_object(), BKE_editmesh_lnorspace_update(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data, BMEditMesh::bm, bm, BM_EDGES_OF_MESH, BM_elem_flag_set, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_SMOOTH, BM_ITER_MESH, BM_loop_normal_editdata_array_free(), BM_loop_normal_editdata_array_init(), BM_SPACEARR_DIRTY_ALL, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, e, EDBM_update(), MEM_freeN, mesh_set_smooth_faces(), normals_merge(), normals_split(), NULL, OPERATOR_FINISHED, and BMesh::spacearr_dirty.
Referenced by edbm_merge_normals_exec(), and edbm_split_normals_exec().
|
static |
Definition at line 9485 of file editmesh_tools.c.
References EDBM_CLNOR_TOOLS_PASTE, ptr, RNA_enum_get(), RNA_property_identifier(), and STREQ.
Referenced by edbm_normals_tools_ui().
|
static |
Definition at line 8434 of file editmesh_tools.c.
References add_v3_v3(), BKE_editmesh_from_object(), BKE_lnor_space_custom_normal_to_data(), BMEditMesh::bm, bm, bmesh_selected_verts_center_calc(), C, center, BMLoopNorEditData::clnors_data, CLNORS_VALID_VEC_LEN, copy_v3_v3(), CTX_data_edit_object(), wmOperator::customdata, BMLoopNorEditDataArray::lnor_editdata, BMesh::lnor_spacearr, BMLoopNorEditData::loc, Object::loc, BMLoopNorEditData::loop_index, MLoopNorSpaceArray::lspacearr, mul_v3_fl(), mul_v3_v3fl(), negate_v3(), BMLoopNorEditData::niloc, BMLoopNorEditData::nloc, normalize_v3(), wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), sub_v3_v3(), sub_v3_v3v3(), and BMLoopNorEditDataArray::totloop.
Referenced by edbm_point_normals_exec(), and edbm_point_normals_modal().
|
static |
Definition at line 8371 of file editmesh_tools.c.
References C, CTX_wm_area(), ED_area_status_text(), NULL, and point_normals_free().
Referenced by edbm_point_normals_exec(), edbm_point_normals_invoke(), edbm_point_normals_modal(), and MESH_OT_point_normals().
|
static |
Definition at line 8746 of file editmesh_tools.c.
References ptr, RNA_boolean_get(), RNA_property_identifier(), and STREQ.
Referenced by edbm_point_normals_ui().
|
static |
Definition at line 8354 of file editmesh_tools.c.
References C, wmOperator::customdata, NULL, and point_normals_init().
Referenced by edbm_point_normals_modal().
|
static |
Definition at line 8362 of file editmesh_tools.c.
References BM_loop_normal_editdata_array_free(), wmOperator::customdata, and NULL.
Referenced by edbm_point_normals_modal(), and point_normals_cancel().
|
static |
Definition at line 8339 of file editmesh_tools.c.
References BKE_editmesh_ensure_autosmooth(), BKE_editmesh_from_object(), BKE_editmesh_lnorspace_update(), BMEditMesh::bm, bm, BM_loop_normal_editdata_array_init(), C, CTX_data_edit_object(), wmOperator::customdata, Object::data, and BMLoopNorEditDataArray::totloop.
Referenced by edbm_point_normals_exec(), edbm_point_normals_invoke(), and point_normals_ensure().
wmKeyMap* point_normals_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Called in transform_ops.c, on each regeneration of key-maps.
Definition at line 8252 of file editmesh_tools.c.
References EDBM_CLNOR_MODAL_CANCEL, EDBM_CLNOR_MODAL_CONFIRM, EDBM_CLNOR_MODAL_POINTTO_ALIGN, EDBM_CLNOR_MODAL_POINTTO_INVERT, EDBM_CLNOR_MODAL_POINTTO_RESET, EDBM_CLNOR_MODAL_POINTTO_SET_USE_3DCURSOR, EDBM_CLNOR_MODAL_POINTTO_SET_USE_SELECTED, EDBM_CLNOR_MODAL_POINTTO_SPHERIZE, EDBM_CLNOR_MODAL_POINTTO_USE_MOUSE, EDBM_CLNOR_MODAL_POINTTO_USE_OBJECT, EDBM_CLNOR_MODAL_POINTTO_USE_PIVOT, wmKeyMap::modal_items, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_mesh().
|
static |
Definition at line 8377 of file editmesh_tools.c.
References BLI_snprintf(), C, CTX_wm_area(), ED_area_status_text(), EDBM_CLNOR_MODAL_CANCEL, EDBM_CLNOR_MODAL_CONFIRM, EDBM_CLNOR_MODAL_POINTTO_ALIGN, EDBM_CLNOR_MODAL_POINTTO_INVERT, EDBM_CLNOR_MODAL_POINTTO_RESET, EDBM_CLNOR_MODAL_POINTTO_SET_USE_3DCURSOR, EDBM_CLNOR_MODAL_POINTTO_SET_USE_SELECTED, EDBM_CLNOR_MODAL_POINTTO_SPHERIZE, EDBM_CLNOR_MODAL_POINTTO_USE_MOUSE, EDBM_CLNOR_MODAL_POINTTO_USE_OBJECT, EDBM_CLNOR_MODAL_POINTTO_USE_PIVOT, EDBM_CLNOR_POINTTO_MODE_MOUSE, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), TIP_, UI_MAX_DRAW_STR, WM_bool_as_string(), and WM_MODALKEY.
Referenced by edbm_point_normals_invoke(), and edbm_point_normals_modal().
|
static |
Definition at line 3852 of file editmesh_tools.c.
References Freestyle::a, BKE_editmesh_from_object(), BMEditMesh::bm, C, CD_SHAPEKEY, CTX_data_edit_object(), CustomData_has_layer(), EnumPropertyItem::identifier, CustomData::layers, CustomDataLayer::name, EnumPropertyItem::name, NULL, OB_MESH, RNA_enum_item_add(), RNA_enum_item_end(), CustomData::totlayer, CustomDataLayer::type, Object::type, EnumPropertyItem::value, and BMesh::vdata.
Referenced by MESH_OT_blend_from_shape().
|
static |
Definition at line 3663 of file editmesh_tools.c.
References BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, CD_SHAPEKEY, BMVert::co, copy_v3_v3(), CustomData_bmesh_get_n(), CustomData_has_layer(), CustomData_number_of_layers(), BMHeader::data, BMVert::head, NULL, and BMesh::vdata.
Referenced by edbm_shape_propagate_to_all_exec().
|
static |
Definition at line 6595 of file editmesh_tools.c.
References BKE_editmesh_from_object(), BLI_rng_free(), BLI_rng_get_float(), BLI_rng_new_srandom(), BMEditMesh::bm, BM_EDGE, BM_EDGES_OF_MESH, BM_elem_flag_test, BM_FACE, BM_face_calc_center_median(), BM_FACES_OF_MESH, BM_ITER_MESH_INDEX, BM_mesh_remap(), BM_VERT, BM_VERTS_OF_MESH, bmelemsort_comp(), C, BMVert::co, copy_v3_v3(), Scene::cursor, Object::data, DEG_id_tag_update(), EDBM_update(), ELEM, float(), ID_RECALC_GEOMETRY, invert_m4_m4(), len_squared_v3v3(), View3DCursor::location, map, BMFace::mat_nr, MAXMAT, MEM_callocN, MEM_freeN, MEM_mallocN, mid_v3_v3v3(), mul_m4_m4m4(), mul_m4_v3(), mul_v3_m4v3(), NC_GEOM, ND_DATA, NULL, Object::obmat, BMElemSort::org_idx, scene, seed, SRT_CURSOR_DISTANCE, SRT_MATERIAL, SRT_RANDOMIZE, SRT_REVERSE, SRT_SELECTED, SRT_VIEW_XAXIS, SRT_VIEW_ZAXIS, BMesh::totedge, BMesh::totface, BMesh::totvert, types, BMEdge::v1, BMEdge::v2, RegionView3D::viewmat, and WM_event_add_notifier().
Referenced by edbm_sort_elements_exec().
|
static |
Definition at line 9063 of file editmesh_tools.c.
Referenced by MESH_OT_average_normals().
|
static |
Definition at line 8328 of file editmesh_tools.c.
Referenced by MESH_OT_point_normals().
|
static |
Definition at line 4018 of file editmesh_tools.c.
Referenced by MESH_OT_knife_cut().
|
static |
Definition at line 3443 of file editmesh_tools.c.
Referenced by merge_type_itemf(), MESH_OT_edge_split(), and MESH_OT_merge().
|
static |
Definition at line 9313 of file editmesh_tools.c.
Referenced by MESH_OT_normals_tools().
|
static |
Definition at line 138 of file editmesh_tools.c.
Referenced by MESH_OT_subdivide().
|
static |
Definition at line 9848 of file editmesh_tools.c.
Referenced by MESH_OT_mod_weighted_strength().