Blender V5.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
8
9/* Internal for editmesh_xxxx.c functions */
10
11#pragma once
12
13#include <cstdarg>
14
15#include "BLI_array.hh"
17#include "BLI_span.hh"
18#include "BLI_sys_types.hh"
19
20namespace blender {
21
22struct bContext;
23struct BMEditMesh;
24struct BMesh;
25struct BMEdge;
26struct BMElem;
27struct BMFace;
28struct BMVert;
29struct BMOperator;
30struct EnumPropertyItem;
31struct Main;
32struct Object;
33struct Scene;
34struct wmGizmoGroupType;
35struct wmKeyConfig;
36struct wmKeyMap;
37struct wmOperator;
38struct wmOperatorType;
39struct ViewContext;
40struct ViewLayer;
41
42/* *** editmesh_utils.cc *** */
43
44/*
45 * ok: the EDBM module is for editmode bmesh stuff. in contrast, the
46 * BMEdit module is for code shared with blenkernel that concerns
47 * the BMEditMesh structure. */
48
50bool EDBM_op_callf(BMesh *bm, wmOperator *op, const char *fmt, ...);
52 wmOperator *op,
53 const char *select_slot_out,
54 bool select_extend,
55 const char *fmt,
56 ...);
59 wmOperator *op,
60 const char *select_slot_out,
61 bool select_extend,
62 const char *fmt,
63 va_list list);
67bool EDBM_op_call_silentf(BMesh *bm, const char *fmt, ...);
68
75bool EDBM_op_init(BMesh *bm, BMOperator *bmop, wmOperator *op, const char *fmt, ...);
76
84bool EDBM_op_finish(BMesh *bm, BMOperator *bmop, wmOperator *op, bool do_report);
85
87
92
94
102
103int EDBM_elem_to_index_any_multi(const Main &bmain,
104 const Scene *scene,
105 ViewLayer *view_layer,
106 BMEditMesh *em,
107 BMElem *ele,
108 int *r_object_index);
110 const Scene *scene,
111 ViewLayer *view_layer,
112 uint object_index,
113 uint elem_index,
114 Object **r_obedit);
115
116/* *** `editmesh_add.cc` *** */
117
128
129/* *** `editmesh_add_gizmo.cc` *** */
130
132
133/* *** editmesh_attribute.cc *** */
134
136
137/* *** `editmesh_bevel.cc` *** */
138
141
142/* *** `editmesh_bisect.cc` *** */
143
145
146/* *** `editmesh_circularize.cc` *** */
147
149
150/* *** `editmesh_curve_edge_loops_between_selected.cc` *** */
151
153
154/* *** `editmesh_fit_edge_loops_to_annotation.cc` *** */
155
157
158/* *** `editmesh_flatten.cc` *** */
159
161
162/* *** `editmesh_relax_edge_loops.cc` *** */
163
165
166/* *** `editmesh_extrude.cc` *** */
167
175
176/* *** `editmesh_extrude_screw.cc` *** */
177
179
180/* *** `editmesh_extrude_spin.cc` *** */
181
183
184/* *** `editmesh_extrude_spin_gizmo.cc` *** */
185
188
189/* *** `editmesh_polybuild.cc` *** */
190
196
197/* *** `editmesh_inset.cc` *** */
198
200
201/* *** `editmesh_intersect.cc` *** */
202
206
207/* *** `editmesh_knife.cc` *** */
208
215 Span<Object *> objects,
216 Span<Array<float2>> polys,
217 bool use_tag,
218 bool cut_through);
219
221
222/* *** `editmesh_loopcut.cc` *** */
223
225
226/* *** `editmesh_rip.cc` *** */
227
230
231/* *** editmesh_select.cc *** */
232
263
264/* *** editmesh_space_evenly.cc *** */
266
268
269/* *** editmesh_tools.cc *** */
300namespace ed::mesh {
302}
303void MESH_OT_split(wmOperatorType *ot);
304void MESH_OT_edge_rotate(wmOperatorType *ot);
305void MESH_OT_hide(wmOperatorType *ot);
306void MESH_OT_reveal(wmOperatorType *ot);
307void MESH_OT_mark_seam(wmOperatorType *ot);
308void MESH_OT_mark_sharp(wmOperatorType *ot);
309void MESH_OT_flip_normals(wmOperatorType *ot);
310void MESH_OT_solidify(wmOperatorType *ot);
311void MESH_OT_separate(wmOperatorType *ot);
312void MESH_OT_fill(wmOperatorType *ot);
313void MESH_OT_fill_grid(wmOperatorType *ot);
314void MESH_OT_fill_holes(wmOperatorType *ot);
315void MESH_OT_beautify_fill(wmOperatorType *ot);
316void MESH_OT_quads_convert_to_tris(wmOperatorType *ot);
317void MESH_OT_tris_convert_to_quads(wmOperatorType *ot);
318void MESH_OT_decimate(wmOperatorType *ot);
319void MESH_OT_dissolve_verts(wmOperatorType *ot);
320void MESH_OT_dissolve_edges(wmOperatorType *ot);
321void MESH_OT_dissolve_faces(wmOperatorType *ot);
322void MESH_OT_dissolve_mode(wmOperatorType *ot);
323void MESH_OT_dissolve_limited(wmOperatorType *ot);
324void MESH_OT_dissolve_degenerate(wmOperatorType *ot);
325void MESH_OT_delete_edgeloop(wmOperatorType *ot);
326void MESH_OT_edge_face_add(wmOperatorType *ot);
327void MESH_OT_duplicate(wmOperatorType *ot);
328void MESH_OT_merge(wmOperatorType *ot);
329void MESH_OT_remove_doubles(wmOperatorType *ot);
330void MESH_OT_poke(wmOperatorType *ot);
331void MESH_OT_point_normals(wmOperatorType *ot);
332void MESH_OT_merge_normals(wmOperatorType *ot);
333void MESH_OT_split_normals(wmOperatorType *ot);
334void MESH_OT_normals_tools(wmOperatorType *ot);
335void MESH_OT_set_normals_from_faces(wmOperatorType *ot);
336void MESH_OT_average_normals(wmOperatorType *ot);
337void MESH_OT_smooth_normals(wmOperatorType *ot);
338void MESH_OT_mod_weighted_strength(wmOperatorType *ot);
339void MESH_OT_flip_quad_tessellation(wmOperatorType *ot);
340
342wmKeyMap *point_normals_modal_keymap(wmKeyConfig *keyconf);
343
344#if defined(WITH_FREESTYLE)
345void MESH_OT_mark_freestyle_edge(wmOperatorType *ot);
346void MESH_OT_mark_freestyle_face(wmOperatorType *ot);
347#endif
348
349/* *** mesh_data.cc *** */
350
351void MESH_OT_uv_texture_add(wmOperatorType *ot);
352void MESH_OT_uv_texture_remove(wmOperatorType *ot);
353void MESH_OT_customdata_mask_clear(wmOperatorType *ot);
354void MESH_OT_customdata_face_sets_clear(wmOperatorType *ot);
355void MESH_OT_customdata_skin_add(wmOperatorType *ot);
356void MESH_OT_customdata_skin_clear(wmOperatorType *ot);
357void MESH_OT_customdata_custom_splitnormals_add(wmOperatorType *ot);
358void MESH_OT_customdata_custom_splitnormals_clear(wmOperatorType *ot);
359void MESH_OT_reorder_vertices_spatial(wmOperatorType *ot);
360
361} // namespace blender
#define C
Definition RandGen.cpp:29
void MESH_OT_set_sharpness_by_angle(wmOperatorType *ot)
BMesh Iterators.
void MESH_OT_fit_edge_loops_to_annotation(wmOperatorType *ot)
BMElem * EDBM_elem_from_selectmode(BMEditMesh *em, BMVert *eve, BMEdge *eed, BMFace *efa)
void MESH_OT_merge_normals(wmOperatorType *ot)
void MESH_OT_symmetrize(wmOperatorType *ot)
void MESH_OT_dissolve_faces(wmOperatorType *ot)
void MESH_OT_customdata_face_sets_clear(wmOperatorType *ot)
Definition mesh_data.cc:563
void EDBM_stats_update(BMesh *bm)
void MESH_OT_faces_shade_smooth(wmOperatorType *ot)
EnumPropertyItem * corner_type_items
void MESH_OT_polybuild_split_at_cursor(wmOperatorType *ot)
unsigned int uint
Definition BKE_text.h:55
void MESH_OT_vert_connect_concave(wmOperatorType *ot)
void MESH_OT_dissolve_edges(wmOperatorType *ot)
bool EDBM_op_init(BMesh *bm, BMOperator *bmop, wmOperator *op, const char *fmt,...)
void MESH_OT_select_by_pole_count(wmOperatorType *ot)
void MESH_OT_mod_weighted_strength(wmOperatorType *ot)
void MESH_OT_beautify_fill(wmOperatorType *ot)
void MESH_OT_subdivide(wmOperatorType *ot)
void MESH_OT_customdata_mask_clear(wmOperatorType *ot)
Definition mesh_data.cc:575
bool EDBM_view3d_poll(bContext *C)
void MESH_OT_convex_hull(wmOperatorType *ot)
void MESH_OT_select_more(wmOperatorType *ot)
void MESH_OT_primitive_uv_sphere_add(wmOperatorType *ot)
void MESH_OT_duplicate(wmOperatorType *ot)
void MESH_OT_customdata_custom_splitnormals_clear(wmOperatorType *ot)
Definition mesh_data.cc:748
void MESH_OT_intersect(wmOperatorType *ot)
void MESH_OT_select_less(wmOperatorType *ot)
void MESH_OT_screw(wmOperatorType *ot)
void MESH_OT_delete_edgeloop(wmOperatorType *ot)
void MESH_OT_primitive_cube_add(wmOperatorType *ot)
void MESH_OT_loop_select(wmOperatorType *ot)
void MESH_OT_dissolve_verts(wmOperatorType *ot)
void MESH_OT_decimate(wmOperatorType *ot)
wmKeyMap * point_normals_modal_keymap(wmKeyConfig *keyconf)
void MESH_OT_vertices_smooth_laplacian(wmOperatorType *ot)
bool EDBM_op_callf(BMesh *bm, wmOperator *op, const char *fmt,...)
void MESH_OT_vert_connect_nonplanar(wmOperatorType *ot)
void MESH_OT_select_edge_ring_multi(wmOperatorType *ot)
void MESH_OT_customdata_custom_splitnormals_add(wmOperatorType *ot)
Definition mesh_data.cc:709
void MESH_OT_select_ungrouped(wmOperatorType *ot)
void MESH_OT_select_axis(wmOperatorType *ot)
void MESH_OT_wireframe(wmOperatorType *ot)
void MESH_OT_shape_propagate_to_all(wmOperatorType *ot)
void MESH_OT_primitive_circle_add(wmOperatorType *ot)
bool EDBM_op_vcall_and_selectf(BMesh *bm, wmOperator *op, const char *select_slot_out, const bool select_extend, const char *fmt, va_list list)
void MESH_OT_knife_tool(wmOperatorType *ot)
void MESH_OT_colors_rotate(wmOperatorType *ot)
void MESH_OT_poke(wmOperatorType *ot)
void MESH_OT_vertices_smooth(wmOperatorType *ot)
void MESH_OT_split_normals(wmOperatorType *ot)
void MESH_OT_reorder_vertices_spatial(wmOperatorType *ot)
Definition meshtools.cc:978
void MESH_OT_select_interior_faces(wmOperatorType *ot)
void MESH_OT_vert_connect_path(wmOperatorType *ot)
void MESH_OT_loopcut(wmOperatorType *ot)
void MESH_OT_blend_from_shape(wmOperatorType *ot)
void MESH_OT_subdivide_edgering(wmOperatorType *ot)
BMElem * EDBM_elem_from_index_any_multi(const Main &bmain, const Scene *scene, ViewLayer *view_layer, uint object_index, uint elem_index, Object **r_obedit)
void MESH_OT_split(wmOperatorType *ot)
void MESH_OT_merge(wmOperatorType *ot)
void MESH_OT_primitive_plane_add(wmOperatorType *ot)
void MESH_OT_symmetry_snap(wmOperatorType *ot)
void MESH_OT_delete_loose(wmOperatorType *ot)
void MESH_OT_select_linked_pick(wmOperatorType *ot)
void MESH_OT_rip_edge(wmOperatorType *ot)
void MESH_OT_extrude_repeat(wmOperatorType *ot)
wmKeyMap * knifetool_modal_keymap(wmKeyConfig *keyconf)
void MESH_OT_extrude_region(wmOperatorType *ot)
void MESH_OT_solidify(wmOperatorType *ot)
void MESH_OT_uvs_reverse(wmOperatorType *ot)
void MESH_OT_shortest_path_select(wmOperatorType *ot)
bool EDBM_op_finish(BMesh *bm, BMOperator *bmop, wmOperator *op, const bool do_report)
void MESH_OT_face_make_planar(wmOperatorType *ot)
bool EDBM_op_call_and_selectf(BMesh *bm, wmOperator *op, const char *select_slot_out, const bool select_extend, const char *fmt,...)
bool EDBM_op_call_silentf(BMesh *bm, const char *fmt,...)
void MESH_OT_attribute_set(wmOperatorType *ot)
void EDBM_mesh_knife(ViewContext *vc, const Span< Object * > objects, const Span< Array< float2 > > polys, bool use_tag, bool cut_through)
void MESH_OT_knife_project(wmOperatorType *ot)
void MESH_OT_edge_face_add(wmOperatorType *ot)
void MESH_OT_select_mirror(wmOperatorType *ot)
void MESH_OT_flip_normals(wmOperatorType *ot)
void MESH_OT_bevel(wmOperatorType *ot)
void MESH_OT_separate(wmOperatorType *ot)
void MESH_OT_primitive_ico_sphere_add(wmOperatorType *ot)
void MESH_OT_dissolve_degenerate(wmOperatorType *ot)
void MESH_OT_primitive_cone_add(wmOperatorType *ot)
void MESH_OT_smooth_normals(wmOperatorType *ot)
wmKeyMap * bevel_modal_keymap(wmKeyConfig *keyconf)
void MESH_OT_loop_to_region(wmOperatorType *ot)
void MESH_OT_offset_edge_loops(wmOperatorType *ot)
void MESH_OT_select_face_by_sides(wmOperatorType *ot)
int EDBM_elem_to_index_any_multi(const Main &bmain, const Scene *scene, ViewLayer *view_layer, BMEditMesh *em, BMElem *ele, int *r_object_index)
void MESH_OT_mark_seam(wmOperatorType *ot)
void MESH_OT_primitive_quad_sphere_add(wmOperatorType *ot)
void MESH_OT_select_by_attribute(wmOperatorType *ot)
BMElem * EDBM_elem_from_index_any(BMesh *bm, uint index)
void MESH_OT_vert_connect(wmOperatorType *ot)
void MESH_OT_edges_select_sharp(wmOperatorType *ot)
void MESH_OT_spin(wmOperatorType *ot)
void MESH_OT_faces_shade_flat(wmOperatorType *ot)
void MESH_OT_select_boundary_loop_multi(wmOperatorType *ot)
void MESH_OT_select_similar(wmOperatorType *ot)
void MESH_OT_extrude_verts_indiv(wmOperatorType *ot)
void MESH_OT_average_normals(wmOperatorType *ot)
void MESH_OT_tris_convert_to_quads(wmOperatorType *ot)
void MESH_OT_set_normals_from_faces(wmOperatorType *ot)
void MESH_OT_edgering_select(wmOperatorType *ot)
void MESH_OT_mark_sharp(wmOperatorType *ot)
void MESH_OT_fill_holes(wmOperatorType *ot)
void MESH_OT_select_loose(wmOperatorType *ot)
void MESH_OT_normals_tools(wmOperatorType *ot)
void MESH_OT_dissolve_mode(wmOperatorType *ot)
void MESH_OT_bisect(wmOperatorType *ot)
void MESH_OT_shortest_path_pick(wmOperatorType *ot)
void MESH_GGT_spin(wmGizmoGroupType *gzgt)
void MESH_OT_select_non_manifold(wmOperatorType *ot)
void MESH_OT_normals_make_consistent(wmOperatorType *ot)
int EDBM_elem_to_index_any(BMesh *bm, BMElem *ele)
void MESH_OT_fill_grid(wmOperatorType *ot)
void MESH_OT_select_edge_loop_multi(wmOperatorType *ot)
void MESH_OT_uvs_rotate(wmOperatorType *ot)
void MESH_OT_uv_texture_add(wmOperatorType *ot)
Definition mesh_data.cc:411
void MESH_OT_uv_texture_remove(wmOperatorType *ot)
Definition mesh_data.cc:446
void MESH_OT_polybuild_delete_at_cursor(wmOperatorType *ot)
void MESH_OT_delete(wmOperatorType *ot)
void MESH_OT_inset(wmOperatorType *ot)
void MESH_GGT_spin_redo(wmGizmoGroupType *gzgt)
void MESH_OT_extrude_edges_indiv(wmOperatorType *ot)
void MESH_OT_face_split_by_edges(wmOperatorType *ot)
void MESH_OT_colors_reverse(wmOperatorType *ot)
void MESH_OT_select_linked(wmOperatorType *ot)
void MESH_OT_polybuild_dissolve_at_cursor(wmOperatorType *ot)
void MESH_OT_circularize(wmOperatorType *ot)
void MESH_OT_customdata_skin_add(wmOperatorType *ot)
Definition mesh_data.cc:632
void MESH_OT_customdata_skin_clear(wmOperatorType *ot)
Definition mesh_data.cc:673
void MESH_OT_space_edge_loops_evenly(wmOperatorType *ot)
void MESH_OT_reveal(wmOperatorType *ot)
void MESH_OT_fill(wmOperatorType *ot)
void MESH_OT_point_normals(wmOperatorType *ot)
void MESH_OT_curve_edge_loops_between_selected(wmOperatorType *ot)
void MESH_OT_polybuild_face_at_cursor(wmOperatorType *ot)
void MESH_OT_select_nth(wmOperatorType *ot)
void MESH_OT_extrude_faces_indiv(wmOperatorType *ot)
void MESH_OT_quads_convert_to_tris(wmOperatorType *ot)
void MESH_OT_faces_select_linked_flat(wmOperatorType *ot)
void MESH_OT_hide(wmOperatorType *ot)
void MESH_OT_unsubdivide(wmOperatorType *ot)
void MESH_OT_flatten(wmOperatorType *ot)
void MESH_OT_sort_elements(wmOperatorType *ot)
void MESH_OT_select_all(wmOperatorType *ot)
void MESH_OT_dissolve_limited(wmOperatorType *ot)
void MESH_OT_edge_collapse(wmOperatorType *ot)
void MESH_OT_rip(wmOperatorType *ot)
void MESH_OT_select_mode(wmOperatorType *ot)
void MESH_OT_primitive_cylinder_add(wmOperatorType *ot)
void MESH_OT_region_to_loop(wmOperatorType *ot)
void MESH_OT_select_random(wmOperatorType *ot)
void MESH_OT_relax_edge_loops(wmOperatorType *ot)
void MESH_OT_primitive_grid_add(wmOperatorType *ot)
void MESH_OT_dupli_extrude_cursor(wmOperatorType *ot)
void MESH_OT_primitive_cube_add_gizmo(wmOperatorType *ot)
void MESH_OT_polybuild_transform_at_cursor(wmOperatorType *ot)
void MESH_OT_edge_split(wmOperatorType *ot)
void MESH_OT_remove_doubles(wmOperatorType *ot)
void MESH_OT_bridge_edge_loops(wmOperatorType *ot)
void MESH_OT_primitive_monkey_add(wmOperatorType *ot)
void MESH_OT_flip_quad_tessellation(wmOperatorType *ot)
void MESH_OT_edge_rotate(wmOperatorType *ot)
void MESH_OT_select_similar_region(wmOperatorType *ot)
void MESH_OT_intersect_boolean(wmOperatorType *ot)
void MESH_OT_extrude_context(wmOperatorType *ot)