~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/bmesh/intern/bmesh_mods.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_MODS_H__
 
24
#define __BMESH_MODS_H__
 
25
 
 
26
/** \file blender/bmesh/intern/bmesh_mods.h
 
27
 *  \ingroup bmesh
 
28
 */
 
29
 
 
30
#include <stdio.h>
 
31
 
 
32
int BM_vert_dissolve(BMesh *bm, BMVert *v);
 
33
 
 
34
int BM_disk_dissolve(BMesh *bm, BMVert *v);
 
35
 
 
36
BMFace *BM_faces_join_pair(BMesh *bm, BMFace *f1, BMFace *f2, BMEdge *e, const short do_del);
 
37
 
 
38
BMEdge *BM_verts_connect(BMesh *bm, BMVert *v1, BMVert *v2, BMFace **r_f);
 
39
 
 
40
BMFace *BM_face_split(BMesh *bm, BMFace *f,
 
41
                      BMVert *v1, BMVert *v2,
 
42
                      BMLoop **r_l,
 
43
                      BMEdge *example, const short nodouble);
 
44
 
 
45
BMFace *BM_face_split_n(BMesh *bm, BMFace *f,
 
46
                        BMVert *v1, BMVert *v2,
 
47
                        float cos[][3], int n,
 
48
                        BMLoop **r_l, BMEdge *example);
 
49
 
 
50
BMEdge* BM_vert_collapse_faces(BMesh *bm, BMEdge *ke, BMVert *kv, float fac,
 
51
                               const short join_faces, const short kill_degenerate_faces);
 
52
BMEdge* BM_vert_collapse_edge(BMesh *bm, BMEdge *ke, BMVert *kv,
 
53
                              const short kill_degenerate_faces);
 
54
 
 
55
 
 
56
BMVert *BM_edge_split(BMesh *bm, BMEdge *e, BMVert *v, BMEdge **r_e, float percent);
 
57
 
 
58
BMVert *BM_edge_split_n(BMesh *bm, BMEdge *e, int numcuts);
 
59
 
 
60
int     BM_face_validate(BMFace *face, FILE *err);
 
61
 
 
62
void    BM_edge_calc_rotate(BMEdge *e, int ccw,
 
63
                            BMLoop **r_l1, BMLoop **r_l2);
 
64
int     BM_edge_rotate_check(BMEdge *e);
 
65
int     BM_edge_rotate_check_degenerate(BMEdge *e,
 
66
                                        BMLoop *l1, BMLoop *l2);
 
67
int     BM_edge_rotate_check_beauty(BMEdge *e,
 
68
                                    BMLoop *l1, BMLoop *l2);
 
69
BMEdge *BM_edge_rotate(BMesh *bm, BMEdge *e, const short ccw, const short check_flag);
 
70
 
 
71
/* flags for BM_edge_rotate */
 
72
enum {
 
73
        BM_EDGEROT_CHECK_EXISTS     = (1 << 0), /* disallow to rotate when the new edge matches an existing one */
 
74
        BM_EDGEROT_CHECK_SPLICE     = (1 << 1), /* overrides existing check, if the edge already, rotate and merge them */
 
75
        BM_EDGEROT_CHECK_DEGENERATE = (1 << 2), /* disallow creating bow-tie, concave or zero area faces */
 
76
        BM_EDGEROT_CHECK_BEAUTY     = (1 << 3)  /* disallow to rotate into ugly topology */
 
77
};
 
78
 
 
79
 
 
80
BMVert *BM_face_vert_separate(BMesh *bm, BMFace *sf, BMVert *sv);
 
81
BMVert *BM_face_loop_separate(BMesh *bm, BMLoop *sl);
 
82
 
 
83
#endif /* __BMESH_MODS_H__ */