Blender V4.3
mesh_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9/* Internal for editmesh_xxxx.c functions */
10
11#pragma once
12
13#include "BLI_span.hh"
14#include "BLI_sys_types.h"
15
16struct bContext;
17struct BMEditMesh;
18struct BMEdge;
19struct BMElem;
20struct BMFace;
21struct BMVert;
22struct BMOperator;
23struct EnumPropertyItem;
24struct LinkNode;
25struct Object;
26struct Scene;
27struct wmGizmoGroupType;
28struct wmKeyConfig;
29struct wmKeyMap;
30struct wmOperator;
31struct wmOperatorType;
32struct ViewContext;
33struct ViewLayer;
34
35/* *** editmesh_utils.cc *** */
36
37/*
38 * ok: the EDBM module is for editmode bmesh stuff. in contrast, the
39 * BMEdit module is for code shared with blenkernel that concerns
40 * the BMEditMesh structure. */
41
43bool EDBM_op_callf(BMEditMesh *em, wmOperator *op, const char *fmt, ...);
45 wmOperator *op,
46 const char *select_slot,
47 bool select_replace,
48 const char *fmt,
49 ...);
53bool EDBM_op_call_silentf(BMEditMesh *em, const char *fmt, ...);
54
61bool EDBM_op_init(BMEditMesh *em, BMOperator *bmop, wmOperator *op, const char *fmt, ...);
62
70bool EDBM_op_finish(BMEditMesh *em, BMOperator *bmop, wmOperator *op, bool do_report);
71
73
78
80
88
90 const Scene *scene, ViewLayer *view_layer, BMEditMesh *em, BMElem *ele, int *r_object_index);
92 ViewLayer *view_layer,
93 uint object_index,
94 uint elem_index,
95 Object **r_obedit);
96
100bool edbm_extrude_edges_indiv(BMEditMesh *em, wmOperator *op, char hflag, bool use_normal_flip);
101
102/* *** `editmesh_add.cc` *** */
103
113
114/* *** `editmesh_add_gizmo.cc` *** */
115
117
118/* *** editmesh_attribute.cc *** */
119
121
122/* *** `editmesh_bevel.cc` *** */
123
126
127/* *** `editmesh_bisect.cc` *** */
128
130
131/* *** `editmesh_extrude.cc` *** */
132
140
141/* *** `editmesh_extrude_screw.cc` *** */
142
144
145/* *** `editmesh_extrude_spin.cc` *** */
146
148
149/* *** `editmesh_extrude_spin_gizmo.cc` *** */
150
153
154/* *** `editmesh_polybuild.cc` *** */
155
161
162/* *** `editmesh_inset.cc` *** */
163
165
166/* *** `editmesh_intersect.cc` *** */
167
171
172/* *** `editmesh_knife.cc` *** */
173
181 LinkNode *polys,
182 bool use_tag,
183 bool cut_through);
184
186
187/* *** `editmesh_loopcut.cc` *** */
188
190
191/* *** `editmesh_rip.cc` *** */
192
195
196/* *** editmesh_select.cc *** */
197
225
227
228/* *** editmesh_tools.cc *** */
259namespace blender::ed::mesh {
261}
299
300/* *** editmesh_mask_extract.cc *** */
301
305
308
309#if defined(WITH_FREESTYLE)
310void MESH_OT_mark_freestyle_edge(wmOperatorType *ot);
311void MESH_OT_mark_freestyle_face(wmOperatorType *ot);
312#endif
313
314/* *** mesh_data.cc *** */
315
unsigned int uint
void MESH_OT_dupli_extrude_cursor(wmOperatorType *ot)
void MESH_OT_poke(wmOperatorType *ot)
void MESH_OT_intersect(wmOperatorType *ot)
void MESH_OT_customdata_mask_clear(wmOperatorType *ot)
Definition mesh_data.cc:618
void MESH_OT_select_less(wmOperatorType *ot)
void MESH_OT_primitive_plane_add(wmOperatorType *ot)
void MESH_OT_primitive_cylinder_add(wmOperatorType *ot)
void MESH_OT_wireframe(wmOperatorType *ot)
void MESH_OT_hide(wmOperatorType *ot)
void MESH_OT_paint_mask_extract(wmOperatorType *ot)
void MESH_OT_shape_propagate_to_all(wmOperatorType *ot)
void MESH_OT_uvs_reverse(wmOperatorType *ot)
void MESH_OT_mod_weighted_strength(wmOperatorType *ot)
void EDBM_mesh_knife(ViewContext *vc, blender::Span< Object * > objects, LinkNode *polys, bool use_tag, bool cut_through)
void MESH_OT_intersect_boolean(wmOperatorType *ot)
bool EDBM_op_callf(BMEditMesh *em, wmOperator *op, const char *fmt,...)
void MESH_OT_customdata_skin_add(wmOperatorType *ot)
Definition mesh_data.cc:671
void MESH_OT_paint_mask_slice(wmOperatorType *ot)
void MESH_OT_faces_shade_flat(wmOperatorType *ot)
void MESH_OT_edge_rotate(wmOperatorType *ot)
void MESH_OT_loop_to_region(wmOperatorType *ot)
void MESH_OT_set_normals_from_faces(wmOperatorType *ot)
void MESH_OT_polybuild_transform_at_cursor(wmOperatorType *ot)
void MESH_OT_select_mode(wmOperatorType *ot)
void MESH_OT_symmetrize(wmOperatorType *ot)
void MESH_OT_edge_split(wmOperatorType *ot)
void MESH_OT_primitive_cube_add_gizmo(wmOperatorType *ot)
void MESH_OT_uv_texture_remove(wmOperatorType *ot)
Definition mesh_data.cc:535
bool edbm_extrude_edges_indiv(BMEditMesh *em, wmOperator *op, char hflag, bool use_normal_flip)
void MESH_OT_select_similar_region(wmOperatorType *ot)
void MESH_OT_delete(wmOperatorType *ot)
bool EDBM_op_init(BMEditMesh *em, BMOperator *bmop, wmOperator *op, const char *fmt,...)
bool EDBM_op_call_and_selectf(BMEditMesh *em, wmOperator *op, const char *select_slot, bool select_replace, const char *fmt,...)
void MESH_OT_beautify_fill(wmOperatorType *ot)
void MESH_OT_select_linked_pick(wmOperatorType *ot)
void MESH_OT_extrude_context(wmOperatorType *ot)
void MESH_OT_colors_rotate(wmOperatorType *ot)
void MESH_OT_quads_convert_to_tris(wmOperatorType *ot)
void MESH_GGT_spin_redo(wmGizmoGroupType *gzgt)
void MESH_OT_primitive_cone_add(wmOperatorType *ot)
void MESH_OT_vert_connect(wmOperatorType *ot)
void MESH_OT_vertices_smooth(wmOperatorType *ot)
void MESH_OT_face_make_planar(wmOperatorType *ot)
void MESH_OT_select_similar(wmOperatorType *ot)
void MESH_OT_dissolve_edges(wmOperatorType *ot)
void MESH_OT_uvs_rotate(wmOperatorType *ot)
void MESH_OT_select_random(wmOperatorType *ot)
void MESH_OT_delete_loose(wmOperatorType *ot)
void MESH_OT_split_normals(wmOperatorType *ot)
void MESH_OT_fill(wmOperatorType *ot)
void MESH_OT_mark_seam(wmOperatorType *ot)
void MESH_OT_remove_doubles(wmOperatorType *ot)
void MESH_OT_offset_edge_loops(wmOperatorType *ot)
wmKeyMap * bevel_modal_keymap(wmKeyConfig *keyconf)
void MESH_OT_shortest_path_select(wmOperatorType *ot)
void EDBM_stats_update(BMEditMesh *em)
void MESH_OT_select_nth(wmOperatorType *ot)
void MESH_OT_subdivide_edgering(wmOperatorType *ot)
void MESH_OT_loop_multi_select(wmOperatorType *ot)
void MESH_OT_separate(wmOperatorType *ot)
wmKeyMap * knifetool_modal_keymap(wmKeyConfig *keyconf)
void MESH_OT_customdata_skin_clear(wmOperatorType *ot)
Definition mesh_data.cc:696
void MESH_OT_dissolve_limited(wmOperatorType *ot)
void MESH_OT_dissolve_degenerate(wmOperatorType *ot)
void MESH_OT_blend_from_shape(wmOperatorType *ot)
bool EDBM_op_finish(BMEditMesh *em, BMOperator *bmop, wmOperator *op, bool do_report)
void MESH_OT_fill_grid(wmOperatorType *ot)
void MESH_OT_inset(wmOperatorType *ot)
void MESH_OT_vert_connect_nonplanar(wmOperatorType *ot)
void MESH_OT_flip_quad_tessellation(wmOperatorType *ot)
void MESH_OT_decimate(wmOperatorType *ot)
EnumPropertyItem * corner_type_items
void MESH_OT_point_normals(wmOperatorType *ot)
void MESH_OT_knife_tool(wmOperatorType *ot)
BMElem * EDBM_elem_from_selectmode(BMEditMesh *em, BMVert *eve, BMEdge *eed, BMFace *efa)
void MESH_OT_convex_hull(wmOperatorType *ot)
void MESH_OT_select_loose(wmOperatorType *ot)
void MESH_OT_polybuild_face_at_cursor(wmOperatorType *ot)
void MESH_OT_primitive_uv_sphere_add(wmOperatorType *ot)
void MESH_OT_dissolve_mode(wmOperatorType *ot)
void MESH_OT_bridge_edge_loops(wmOperatorType *ot)
BMElem * EDBM_elem_from_index_any_multi(const Scene *scene, ViewLayer *view_layer, uint object_index, uint elem_index, Object **r_obedit)
void MESH_OT_subdivide(wmOperatorType *ot)
void MESH_OT_primitive_monkey_add(wmOperatorType *ot)
void MESH_OT_unsubdivide(wmOperatorType *ot)
void MESH_OT_select_by_attribute(wmOperatorType *ot)
void MESH_OT_attribute_set(wmOperatorType *ot)
void MESH_OT_edgering_select(wmOperatorType *ot)
void MESH_OT_duplicate(wmOperatorType *ot)
void MESH_OT_primitive_cube_add(wmOperatorType *ot)
wmKeyMap * point_normals_modal_keymap(wmKeyConfig *keyconf)
void MESH_OT_screw(wmOperatorType *ot)
void MESH_OT_knife_project(wmOperatorType *ot)
BMElem * EDBM_elem_from_index_any(BMEditMesh *em, uint index)
void MESH_OT_normals_make_consistent(wmOperatorType *ot)
bool EDBM_op_call_silentf(BMEditMesh *em, const char *fmt,...)
void MESH_OT_tris_convert_to_quads(wmOperatorType *ot)
void MESH_OT_select_face_by_sides(wmOperatorType *ot)
void MESH_OT_face_split_by_edges(wmOperatorType *ot)
int EDBM_elem_to_index_any(BMEditMesh *em, BMElem *ele)
void MESH_OT_select_axis(wmOperatorType *ot)
void MESH_OT_flip_normals(wmOperatorType *ot)
void MESH_OT_bevel(wmOperatorType *ot)
void MESH_OT_select_mirror(wmOperatorType *ot)
void MESH_OT_mark_sharp(wmOperatorType *ot)
void MESH_OT_smooth_normals(wmOperatorType *ot)
void MESH_OT_vert_connect_path(wmOperatorType *ot)
void MESH_OT_merge_normals(wmOperatorType *ot)
void MESH_OT_reveal(wmOperatorType *ot)
void MESH_OT_delete_edgeloop(wmOperatorType *ot)
void MESH_OT_merge(wmOperatorType *ot)
void MESH_OT_extrude_faces_indiv(wmOperatorType *ot)
void MESH_OT_sort_elements(wmOperatorType *ot)
void MESH_OT_fill_holes(wmOperatorType *ot)
void MESH_OT_faces_select_linked_flat(wmOperatorType *ot)
void MESH_OT_solidify(wmOperatorType *ot)
void MESH_OT_edges_select_sharp(wmOperatorType *ot)
void MESH_OT_vert_connect_concave(wmOperatorType *ot)
bool EDBM_view3d_poll(bContext *C)
void MESH_OT_primitive_ico_sphere_add(wmOperatorType *ot)
void MESH_OT_loopcut(wmOperatorType *ot)
int EDBM_elem_to_index_any_multi(const Scene *scene, ViewLayer *view_layer, BMEditMesh *em, BMElem *ele, int *r_object_index)
void MESH_OT_symmetry_snap(wmOperatorType *ot)
void MESH_OT_rip(wmOperatorType *ot)
void MESH_OT_normals_tools(wmOperatorType *ot)
void MESH_OT_uv_texture_add(wmOperatorType *ot)
Definition mesh_data.cc:496
void MESH_OT_average_normals(wmOperatorType *ot)
void MESH_OT_select_interior_faces(wmOperatorType *ot)
void MESH_OT_polybuild_delete_at_cursor(wmOperatorType *ot)
void MESH_OT_select_linked(wmOperatorType *ot)
void MESH_OT_faces_shade_smooth(wmOperatorType *ot)
void MESH_OT_extrude_region(wmOperatorType *ot)
void MESH_OT_colors_reverse(wmOperatorType *ot)
void MESH_OT_dissolve_faces(wmOperatorType *ot)
void MESH_OT_primitive_grid_add(wmOperatorType *ot)
void MESH_OT_spin(wmOperatorType *ot)
void MESH_OT_select_all(wmOperatorType *ot)
void MESH_OT_select_more(wmOperatorType *ot)
void MESH_OT_polybuild_dissolve_at_cursor(wmOperatorType *ot)
void MESH_OT_customdata_custom_splitnormals_add(wmOperatorType *ot)
Definition mesh_data.cc:735
void MESH_OT_polybuild_split_at_cursor(wmOperatorType *ot)
void MESH_GGT_spin(wmGizmoGroupType *gzgt)
void MESH_OT_bisect(wmOperatorType *ot)
void MESH_OT_region_to_loop(wmOperatorType *ot)
void MESH_OT_loop_select(wmOperatorType *ot)
void MESH_OT_edge_face_add(wmOperatorType *ot)
void MESH_OT_edge_collapse(wmOperatorType *ot)
void MESH_OT_vertices_smooth_laplacian(wmOperatorType *ot)
void MESH_OT_extrude_edges_indiv(wmOperatorType *ot)
void MESH_OT_customdata_custom_splitnormals_clear(wmOperatorType *ot)
Definition mesh_data.cc:778
void MESH_OT_primitive_circle_add(wmOperatorType *ot)
void MESH_OT_dissolve_verts(wmOperatorType *ot)
void MESH_OT_shortest_path_pick(wmOperatorType *ot)
void MESH_OT_select_ungrouped(wmOperatorType *ot)
void MESH_OT_rip_edge(wmOperatorType *ot)
void MESH_OT_extrude_repeat(wmOperatorType *ot)
void MESH_OT_select_non_manifold(wmOperatorType *ot)
void MESH_OT_extrude_verts_indiv(wmOperatorType *ot)
void MESH_OT_split(wmOperatorType *ot)
void MESH_OT_face_set_extract(wmOperatorType *ot)
void MESH_OT_set_sharpness_by_angle(wmOperatorType *ot)
wmOperatorType * ot
Definition wm_files.cc:4125