bmesh operator naming - use clearer names for args eg: (mat -> matrix, use_singleedge...
[blender.git] / source / blender / bmesh / intern / bmesh_operators.h
1 /*
2  * ***** BEGIN GPL LICENSE BLOCK *****
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  * Contributor(s): Joseph Eagar.
19  *
20  * ***** END GPL LICENSE BLOCK *****
21  */
22
23 #ifndef __BMESH_OPERATORS_H__
24 #define __BMESH_OPERATORS_H__
25
26 /** \file blender/bmesh/intern/bmesh_operators.h
27  *  \ingroup bmesh
28  */
29
30 /*see comments in intern/bmesh_opdefines.c for documentation of specific operators*/
31
32 /*--------defines/enumerations for specific operators-------*/
33
34 /*quad innervert values*/
35 enum {
36         SUBD_INNERVERT,
37         SUBD_PATH,
38         SUBD_FAN,
39         SUBD_STRAIGHT_CUT
40 };
41
42 enum {
43         SUBDIV_SELECT_ORIG,
44         SUBDIV_SELECT_INNER,
45         SUBDIV_SELECT_INNER_SEL,
46         SUBDIV_SELECT_LOOPCUT
47 };
48
49 enum {
50         SIM_CMP_EQ = 0,
51         SIM_CMP_GT,
52         SIM_CMP_LT
53 };
54
55 /* similar face selection slot values */
56 enum {
57         SIMFACE_MATERIAL = 201,
58         SIMFACE_IMAGE,
59         SIMFACE_AREA,
60         SIMFACE_SIDES,
61         SIMFACE_PERIMETER,
62         SIMFACE_NORMAL,
63         SIMFACE_COPLANAR
64 };
65
66 /* similar edge selection slot values */
67 enum {
68         SIMEDGE_LENGTH = 101,
69         SIMEDGE_DIR,
70         SIMEDGE_FACE,
71         SIMEDGE_FACE_ANGLE,
72         SIMEDGE_CREASE,
73         SIMEDGE_BEVEL,
74         SIMEDGE_SEAM,
75         SIMEDGE_SHARP
76 };
77
78 /* similar vertex selection slot values */
79 enum {
80         SIMVERT_NORMAL = 0,
81         SIMVERT_FACE,
82         SIMVERT_VGROUP,
83         SIMVERT_EDGE
84 };
85
86 /* vertex path selection values */
87 enum {
88         VPATH_SELECT_EDGE_LENGTH = 0,
89         VPATH_SELECT_TOPOLOGICAL
90 };
91
92 extern const BMOpDefine *bmo_opdefines[];
93 extern const int         bmo_opdefines_total;
94
95 /*------specific operator helper functions-------*/
96 void BM_mesh_esubdivide(BMesh *bm, const char edge_hflag,
97                         float smooth, float fractal, float along_normal,
98                         int numcuts,
99                         int seltype, int cornertype,
100                         const short use_single_edge, const short use_grid_fill,
101                         const short use_only_quads,
102                         int seed);
103
104 #include "intern/bmesh_operator_api_inline.h"
105
106 #endif /* __BMESH_OPERATORS_H__ */