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

« back to all changes in this revision

Viewing changes to source/blender/bmesh/operators/bmo_subdivide.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:
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
 
/** \file blender/bmesh/operators/bmo_subdivide.h
24
 
 *  \ingroup bmesh
25
 
 */
26
 
 
27
 
#ifndef __BMO_SUBDIVIDE_H__
28
 
#define __BMO_SUBDIVIDE_H__
29
 
 
30
 
typedef struct SubDParams {
31
 
        int numcuts;
32
 
        float smooth;
33
 
        float fractal;
34
 
        float along_normal;
35
 
        //int beauty;
36
 
        short use_smooth;
37
 
        short use_sphere;
38
 
        short use_fractal;
39
 
        int seed;
40
 
        int origkey; /* shapekey holding displaced vertex coordinates for current geometry */
41
 
        BMOperator *op;
42
 
        BMOpSlot *slot_edge_percents;  /* BMO_slot_get(params->op->slots_in, "edge_percents"); */
43
 
        BMOpSlot *slot_custom_patterns;  /* BMO_slot_get(params->op->slots_in, "custom_patterns"); */
44
 
        float off[3];
45
 
} SubDParams;
46
 
 
47
 
typedef void (*subd_pattern_fill_fp)(BMesh *bm, BMFace *face, BMVert **verts,
48
 
                                     const SubDParams *params);
49
 
 
50
 
/*
51
 
 * note: this is a pattern-based edge subdivider.
52
 
 * it tries to match a pattern to edge selections on faces,
53
 
 * then executes functions to cut them.
54
 
 */
55
 
typedef struct SubDPattern {
56
 
        int seledges[20]; /* selected edges mask, for splitting */
57
 
 
58
 
        /* verts starts at the first new vert cut, not the first vert in the face */
59
 
        subd_pattern_fill_fp connectexec;
60
 
        int len; /* total number of verts, before any subdivision */
61
 
} SubDPattern;
62
 
 
63
 
/* generic subdivision rules:
64
 
 *
65
 
 * - two selected edges in a face should make a link
66
 
 *   between them.
67
 
 *
68
 
 * - one edge should do, what? make pretty topology, or just
69
 
 *   split the edge only?
70
 
 */
71
 
 
72
 
#endif /* __BMO_SUBDIVIDE_H__ */