~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/editors/mesh/mesh_intern.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 *  \ingroup edmesh
30
30
 */
31
31
 
32
 
 
33
32
/* Internal for editmesh_xxxx.c functions */
34
33
 
35
34
#ifndef __MESH_INTERN_H__
48
47
struct wmKeyMap;
49
48
struct wmOperator;
50
49
struct wmOperatorType;
 
50
struct LinkNode;
51
51
 
52
 
/* ******************** editmesh_utils.c */
 
52
/* *** editmesh_utils.c *** */
53
53
 
54
54
/*
55
55
 * ok: the EDBM module is for editmode bmesh stuff.  in contrast, the 
56
56
 * BMEdit module is for code shared with blenkernel that concerns
57
 
 * the BMEditMesh structure.
58
 
 */
59
 
 
60
 
/*calls a bmesh op, reporting errors to the user, etc*/
61
 
int EDBM_op_callf(struct BMEditMesh *em, struct wmOperator *op, const char *fmt, ...);
62
 
 
63
 
int EDBM_op_call_and_selectf(struct BMEditMesh *em, struct wmOperator *op,
64
 
                             const char *selectslot, const char *fmt, ...);
65
 
 
66
 
/* same as above, but doesn't report errors.*/
67
 
int EDBM_op_call_silentf(struct BMEditMesh *em, const char *fmt, ...);
 
57
 * the BMEditMesh structure. */
 
58
 
 
59
/* Calls a bmesh op, reporting errors to the user, etc */
 
60
bool EDBM_op_callf(struct BMEditMesh *em, struct wmOperator *op, const char *fmt, ...);
 
61
bool EDBM_op_call_and_selectf(struct BMEditMesh *em, struct wmOperator *op,
 
62
                              const char *selectslot, const char *fmt, ...);
 
63
/* Same as above, but doesn't report errors.*/
 
64
bool EDBM_op_call_silentf(struct BMEditMesh *em, const char *fmt, ...);
68
65
 
69
66
/* these next two functions are the split version of EDBM_op_callf, so you can
70
67
 * do stuff with a bmesh operator, after initializing it but before executing
71
68
 * it.
72
69
 *
73
70
 * execute the operator with BM_Exec_Op */
74
 
int EDBM_op_init(struct BMEditMesh *em, struct BMOperator *bmop,
75
 
                 struct wmOperator *op, const char *fmt, ...);
76
 
/*cleans up after a bmesh operator*/
77
 
int EDBM_op_finish(struct BMEditMesh *em, struct BMOperator *bmop,
78
 
                   struct wmOperator *op, const int report);
 
71
bool EDBM_op_init(struct BMEditMesh *em, struct BMOperator *bmop,
 
72
                  struct wmOperator *op, const char *fmt, ...);
 
73
/* Cleans up after a bmesh operator */
 
74
bool EDBM_op_finish(struct BMEditMesh *em, struct BMOperator *bmop,
 
75
                    struct wmOperator *op, const bool do_report);
79
76
 
80
 
void EDBM_flag_disable_all(struct BMEditMesh *em, const char hflag);
81
77
void EDBM_stats_update(struct BMEditMesh *em);
82
78
 
83
 
/* ******************** editface.c */
84
 
 
85
 
void MESH_OT_separate(struct wmOperatorType *ot);
86
 
 
87
 
/* ******************* editmesh_add.c */
 
79
int  EDBM_view3d_poll(struct bContext *C);
 
80
 
 
81
 
 
82
/* *** editmesh_add.c *** */
88
83
void MESH_OT_primitive_plane_add(struct wmOperatorType *ot);
89
84
void MESH_OT_primitive_cube_add(struct wmOperatorType *ot);
90
85
void MESH_OT_primitive_circle_add(struct wmOperatorType *ot);
95
90
void MESH_OT_primitive_uv_sphere_add(struct wmOperatorType *ot);
96
91
void MESH_OT_primitive_ico_sphere_add(struct wmOperatorType *ot);
97
92
 
98
 
void MESH_OT_edge_face_add(struct wmOperatorType *ot);
 
93
 
 
94
/* *** editmesh_bevel.c *** */
 
95
void MESH_OT_bevel(struct wmOperatorType *ot);
 
96
 
 
97
 
 
98
/* *** editmesh_extrude.c *** */
 
99
void MESH_OT_extrude_repeat(struct wmOperatorType *ot);
 
100
void MESH_OT_extrude_region(struct wmOperatorType *ot);
 
101
void MESH_OT_extrude_verts_indiv(struct wmOperatorType *ot);
 
102
void MESH_OT_extrude_edges_indiv(struct wmOperatorType *ot);
 
103
void MESH_OT_extrude_faces_indiv(struct wmOperatorType *ot);
99
104
void MESH_OT_dupli_extrude_cursor(struct wmOperatorType *ot);
100
 
void MESH_OT_duplicate(struct wmOperatorType *ot);
101
 
 
102
 
extern int EM_view3d_poll(struct bContext *C);
 
105
void MESH_OT_spin(struct wmOperatorType *ot);
 
106
void MESH_OT_screw(struct wmOperatorType *ot);
 
107
 
 
108
 
 
109
/* *** editmesh_inset.c *** */
 
110
void MESH_OT_inset(struct wmOperatorType *ot);
 
111
 
 
112
 
 
113
/* *** editmesh_knife.c *** */
 
114
void MESH_OT_knife_tool(struct wmOperatorType *ot);
 
115
void MESH_OT_knife_project(struct wmOperatorType *ot);
 
116
void EDBM_mesh_knife(struct bContext *C, struct LinkNode *polys, bool use_tag);
103
117
 
104
118
struct wmKeyMap *knifetool_modal_keymap(struct wmKeyConfig *keyconf);
105
119
 
106
 
/* ******************* knifetool.c */
107
 
 
108
 
void MESH_OT_knife_cut(struct wmOperatorType *ot);
109
 
 
110
 
/* ******************* bmesh_select.c */
 
120
 
 
121
/* *** editmesh_loopcut.c *** */
 
122
void MESH_OT_loopcut(struct wmOperatorType *ot);
 
123
 
 
124
 
 
125
/* *** editmesh_rip.c *** */
 
126
void MESH_OT_rip(struct wmOperatorType *ot);
 
127
 
 
128
 
 
129
/* *** editmesh_select.c *** */
 
130
void MESH_OT_select_similar(struct wmOperatorType *ot);
 
131
void MESH_OT_select_mode(struct wmOperatorType *ot);
 
132
void MESH_OT_loop_multi_select(struct wmOperatorType *ot);
111
133
void MESH_OT_loop_select(struct wmOperatorType *ot);
 
134
void MESH_OT_edgering_select(struct wmOperatorType *ot);
112
135
void MESH_OT_select_all(struct wmOperatorType *ot);
113
136
void MESH_OT_select_interior_faces(struct wmOperatorType *ot);
114
 
void MESH_OT_select_more(struct wmOperatorType *ot);
115
 
void MESH_OT_select_less(struct wmOperatorType *ot);
116
 
void MESH_OT_select_non_manifold(struct wmOperatorType *ot);
 
137
void MESH_OT_shortest_path_pick(struct wmOperatorType *ot);
117
138
void MESH_OT_select_linked(struct wmOperatorType *ot);
118
139
void MESH_OT_select_linked_pick(struct wmOperatorType *ot);
119
 
void MESH_OT_hide(struct wmOperatorType *ot);
120
 
void MESH_OT_reveal(struct wmOperatorType *ot);
121
140
void MESH_OT_select_face_by_sides(struct wmOperatorType *ot);
122
 
void MESH_OT_select_loose_verts(struct wmOperatorType *ot);
 
141
void MESH_OT_select_loose(struct wmOperatorType *ot);
123
142
void MESH_OT_select_mirror(struct wmOperatorType *ot);
124
 
void MESH_OT_normals_make_consistent(struct wmOperatorType *ot);
 
143
void MESH_OT_select_more(struct wmOperatorType *ot);
 
144
void MESH_OT_select_less(struct wmOperatorType *ot);
 
145
void MESH_OT_select_nth(struct wmOperatorType *ot);
 
146
void MESH_OT_edges_select_sharp(struct wmOperatorType *ot);
125
147
void MESH_OT_faces_select_linked_flat(struct wmOperatorType *ot);
126
 
void MESH_OT_edges_select_sharp(struct wmOperatorType *ot);
127
 
void MESH_OT_select_shortest_path(struct wmOperatorType *ot);
128
 
void MESH_OT_select_similar(struct wmOperatorType *ot);
129
 
void MESH_OT_select_mode(struct wmOperatorType *ot);
 
148
void MESH_OT_select_non_manifold(struct wmOperatorType *ot);
130
149
void MESH_OT_select_random(struct wmOperatorType *ot);
131
 
void MESH_OT_loop_multi_select(struct wmOperatorType *ot);
 
150
void MESH_OT_select_ungrouped(struct wmOperatorType *ot);
 
151
void MESH_OT_select_axis(struct wmOperatorType *ot);
 
152
void MESH_OT_select_next_loop(struct wmOperatorType *ot);
 
153
void MESH_OT_region_to_loop(struct wmOperatorType *ot);
 
154
void MESH_OT_loop_to_region(struct wmOperatorType *ot);
 
155
void MESH_OT_shortest_path_select(struct wmOperatorType *ot);
 
156
 
 
157
extern struct EnumPropertyItem *corner_type_items;
 
158
 
 
159
 
 
160
/* *** editmesh_tools.c *** */
 
161
void MESH_OT_subdivide(struct wmOperatorType *ot);
 
162
void MESH_OT_subdivide_edgering(struct wmOperatorType *ot);
 
163
void MESH_OT_unsubdivide(struct wmOperatorType *ot);
 
164
void MESH_OT_normals_make_consistent(struct wmOperatorType *ot);
 
165
void MESH_OT_vertices_smooth(struct wmOperatorType *ot);
 
166
void MESH_OT_vertices_smooth_laplacian(struct wmOperatorType *ot);
 
167
void MESH_OT_vert_connect(struct wmOperatorType *ot);
 
168
void MESH_OT_edge_split(struct wmOperatorType *ot);
 
169
void MESH_OT_bridge_edge_loops(struct wmOperatorType *ot);
 
170
void MESH_OT_wireframe(struct wmOperatorType *ot);
 
171
void MESH_OT_convex_hull(struct wmOperatorType *ot);
 
172
void MESH_OT_symmetrize(struct wmOperatorType *ot);
 
173
void MESH_OT_symmetry_snap(struct wmOperatorType *ot);
 
174
void MESH_OT_shape_propagate_to_all(struct wmOperatorType *ot);
 
175
void MESH_OT_blend_from_shape(struct wmOperatorType *ot);
 
176
void MESH_OT_sort_elements(struct wmOperatorType *ot);
 
177
void MESH_OT_uvs_rotate(struct wmOperatorType *ot);
 
178
void MESH_OT_uvs_reverse(struct wmOperatorType *ot);
 
179
void MESH_OT_colors_rotate(struct wmOperatorType *ot);
 
180
void MESH_OT_colors_reverse(struct wmOperatorType *ot);
 
181
void MESH_OT_delete(struct wmOperatorType *ot);
 
182
void MESH_OT_edge_collapse(struct wmOperatorType *ot);
 
183
void MESH_OT_faces_shade_smooth(struct wmOperatorType *ot);
 
184
void MESH_OT_faces_shade_flat(struct wmOperatorType *ot);
 
185
void MESH_OT_split(struct wmOperatorType *ot);
 
186
void MESH_OT_edge_rotate(struct wmOperatorType *ot);
 
187
void MESH_OT_hide(struct wmOperatorType *ot);
 
188
void MESH_OT_reveal(struct wmOperatorType *ot);
132
189
void MESH_OT_mark_seam(struct wmOperatorType *ot);
133
190
void MESH_OT_mark_sharp(struct wmOperatorType *ot);
134
 
void MESH_OT_vertices_smooth(struct wmOperatorType *ot);
135
 
void MESH_OT_vertices_smooth_laplacian(struct wmOperatorType *ot);
136
191
void MESH_OT_noise(struct wmOperatorType *ot);
137
192
void MESH_OT_flip_normals(struct wmOperatorType *ot);
138
193
void MESH_OT_solidify(struct wmOperatorType *ot);
139
 
void MESH_OT_select_nth(struct wmOperatorType *ot);
140
 
void MESH_OT_select_next_loop(struct wmOperatorType *ot);
141
 
 
142
 
extern struct EnumPropertyItem *corner_type_items;
143
 
 
144
 
void MESH_OT_merge(struct wmOperatorType *ot);
145
 
void MESH_OT_subdivide(struct wmOperatorType *ot);
146
 
void MESH_OT_unsubdivide(struct wmOperatorType *ot);
147
 
void MESH_OT_remove_doubles(struct wmOperatorType *ot);
148
 
void MESH_OT_spin(struct wmOperatorType *ot);
149
 
void MESH_OT_screw(struct wmOperatorType *ot);
150
 
 
 
194
void MESH_OT_knife_cut(struct wmOperatorType *ot);
 
195
void MESH_OT_separate(struct wmOperatorType *ot);
151
196
void MESH_OT_fill(struct wmOperatorType *ot);
 
197
void MESH_OT_fill_grid(struct wmOperatorType *ot);
152
198
void MESH_OT_beautify_fill(struct wmOperatorType *ot);
153
199
void MESH_OT_quads_convert_to_tris(struct wmOperatorType *ot);
154
200
void MESH_OT_tris_convert_to_quads(struct wmOperatorType *ot);
155
 
void MESH_OT_dissolve(struct wmOperatorType *ot);
 
201
void MESH_OT_dissolve_verts(struct wmOperatorType *ot);
 
202
void MESH_OT_dissolve_edges(struct wmOperatorType *ot);
 
203
void MESH_OT_dissolve_faces(struct wmOperatorType *ot);
156
204
void MESH_OT_dissolve_limited(struct wmOperatorType *ot);
157
 
void MESH_OT_faces_shade_smooth(struct wmOperatorType *ot);
158
 
void MESH_OT_faces_shade_flat(struct wmOperatorType *ot);
159
 
void MESH_OT_split(struct wmOperatorType *ot);
160
 
void MESH_OT_extrude_repeat(struct wmOperatorType *ot);
161
 
void MESH_OT_edge_rotate(struct wmOperatorType *ot);
162
 
void MESH_OT_select_vertex_path(struct wmOperatorType *ot);
163
 
void MESH_OT_loop_to_region(struct wmOperatorType *ot);
164
 
void MESH_OT_region_to_loop(struct wmOperatorType *ot);
165
 
void MESH_OT_select_axis(struct wmOperatorType *ot);
166
 
 
167
 
void MESH_OT_uvs_rotate(struct wmOperatorType *ot);
168
 
//void MESH_OT_uvs_mirror(struct wmOperatorType *ot);
169
 
void MESH_OT_uvs_reverse(struct wmOperatorType *ot);
170
 
void MESH_OT_colors_rotate(struct wmOperatorType *ot);
171
 
//void MESH_OT_colors_mirror(struct wmOperatorType *ot);
172
 
 
173
 
void MESH_OT_colors_reverse(struct wmOperatorType *ot);
174
 
 
175
 
void MESH_OT_delete(struct wmOperatorType *ot);
176
 
void MESH_OT_edge_collapse(struct wmOperatorType *ot);
177
 
void MESH_OT_edge_collapse_loop(struct wmOperatorType *ot);
178
 
void MESH_OT_rip(struct wmOperatorType *ot);
179
 
 
180
 
void MESH_OT_shape_propagate_to_all(struct wmOperatorType *ot);
181
 
void MESH_OT_blend_from_shape(struct wmOperatorType *ot);
182
 
void MESH_OT_sort_elements(struct wmOperatorType *ot);
183
 
 
184
 
/* ******************* mesh_data.c */
185
 
 
 
205
void MESH_OT_delete_edgeloop(struct wmOperatorType *ot);
 
206
void MESH_OT_edge_face_add(struct wmOperatorType *ot);
 
207
void MESH_OT_duplicate(struct wmOperatorType *ot);
 
208
void MESH_OT_merge(struct wmOperatorType *ot);
 
209
void MESH_OT_remove_doubles(struct wmOperatorType *ot);
 
210
void MESH_OT_poke(struct wmOperatorType *ot);
 
211
 
 
212
#ifdef WITH_FREESTYLE
 
213
void MESH_OT_mark_freestyle_edge(struct wmOperatorType *ot);
 
214
void MESH_OT_mark_freestyle_face(struct wmOperatorType *ot);
 
215
#endif
 
216
 
 
217
/* *** mesh_data.c *** */
186
218
void MESH_OT_uv_texture_add(struct wmOperatorType *ot);
187
219
void MESH_OT_uv_texture_remove(struct wmOperatorType *ot);
188
220
void MESH_OT_vertex_color_add(struct wmOperatorType *ot);
190
222
/* no create_mask yet */
191
223
void MESH_OT_customdata_clear_mask(struct wmOperatorType *ot);
192
224
void MESH_OT_customdata_clear_skin(struct wmOperatorType *ot);
193
 
 
194
225
void MESH_OT_drop_named_image(struct wmOperatorType *ot);
195
226
 
196
 
/* ************* bmesh_tools.c ***********/
197
 
void MESH_OT_vert_connect(struct wmOperatorType *ot);
198
 
void MESH_OT_edge_split(struct wmOperatorType *ot);
199
 
void MESH_OT_extrude_region(struct wmOperatorType *ot);
200
 
void MESH_OT_extrude_verts_indiv(struct wmOperatorType *ot);
201
 
void MESH_OT_extrude_edges_indiv(struct wmOperatorType *ot);
202
 
void MESH_OT_extrude_faces_indiv(struct wmOperatorType *ot);
203
 
 
204
 
void MESH_OT_edgering_select(struct wmOperatorType *ot);
205
 
void MESH_OT_loopcut(struct wmOperatorType *ot);
206
 
 
207
 
void MESH_OT_knife_tool(struct wmOperatorType *ot);
208
 
void MESH_OT_bevel(struct wmOperatorType *ot);
209
 
 
210
 
void MESH_OT_bridge_edge_loops(struct wmOperatorType *ot);
211
 
void MESH_OT_inset(struct wmOperatorType *ot);
212
 
void MESH_OT_wireframe(struct wmOperatorType *ot);
213
 
 
214
 
void MESH_OT_convex_hull(struct wmOperatorType *ot);
215
 
 
216
 
void MESH_OT_symmetrize(struct wmOperatorType *ot);
217
 
 
218
 
/* ******************* mesh_navmesh.c */
 
227
 
 
228
/* *** mesh_navmesh.c *** */
219
229
void MESH_OT_navmesh_make(struct wmOperatorType *ot);
220
230
void MESH_OT_navmesh_face_copy(struct wmOperatorType *ot);
221
231
void MESH_OT_navmesh_face_add(struct wmOperatorType *ot);
222
232
void MESH_OT_navmesh_reset(struct wmOperatorType *ot);
223
233
void MESH_OT_navmesh_clear(struct wmOperatorType *ot);
224
234
 
 
235
 
225
236
#endif  /* __MESH_INTERN_H__ */