~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_mesh_types.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: DNA_mesh_types.h,v 1.17 2004/03/22 22:01:21 jesterking Exp $ 
 
2
 * $Id: DNA_mesh_types.h,v 1.24 2005/04/04 04:20:31 zuster Exp $ 
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
35
35
#include "DNA_listBase.h"
36
36
#include "DNA_ID.h"
37
37
 
 
38
struct DerivedMesh;
 
39
struct DispListMesh;
38
40
struct Ipo;
39
41
struct Key;
40
42
struct Material;
41
43
struct MVert;
 
44
struct MEdge;
42
45
struct MCol;
43
46
struct MSticky;
44
47
struct Mesh;
52
55
        float uv[4][2];         /* when you change this: also do function set_correct_uv in editmesh.c, and there are more locations that use the size of this part */
53
56
        unsigned int col[4];
54
57
        char flag, transp;
55
 
        short mode, tile, pad;
 
58
        short mode, tile, unwrap;
56
59
} TFace;
57
60
 
58
61
typedef struct Mesh {
69
72
 
70
73
        void *mface, *dface, *tface;
71
74
        struct MVert *mvert;
 
75
        struct MEdge *medge;
72
76
        struct MDeformVert *dvert;      /* __NLA */
73
77
        struct MCol *mcol;
74
78
        struct MSticky *msticky;
75
79
        struct Mesh *texcomesh;
76
80
        float *orco;
77
 
        
 
81
 
 
82
                /* not written in file, caches derived mesh */
 
83
        struct DerivedMesh *derived;
 
84
                /* hacky place to store temporary decimated mesh */
 
85
        struct DispListMesh *decimated;
 
86
 
78
87
        struct OcInfo *oc;              /* not written in file */
79
88
        void *sumohandle;
80
 
    
81
 
        int totvert, totface;
82
 
        
 
89
 
 
90
        int totvert, totedge, totface;
83
91
        int texflag;
 
92
        
84
93
        float loc[3];
85
94
        float size[3];
86
95
        float rot[3];
87
96
        
 
97
        float cubemapsize, pad;
 
98
 
88
99
        short smoothresh, flag;
89
 
        short subdiv, subdivr, subdivdone;
 
100
 
 
101
        short subdiv, subdivr;
90
102
        short totcol;
91
103
        short subsurftype; 
92
 
        short reserved1;        /* Padding */
93
 
 
94
 
        float cubemapsize, rtf;
95
104
 
96
105
} Mesh;
97
106
 
117
126
#define ME_CC_SUBSURF           0
118
127
#define ME_SIMPLE_SUBSURF       1
119
128
 
120
 
/* puno = vertexnormal (mface) */
121
 
#define ME_FLIPV1               1
122
 
#define ME_FLIPV2               2
123
 
#define ME_FLIPV3               4
124
 
#define ME_FLIPV4               8
125
 
#define ME_PROJXY               16
126
 
#define ME_PROJXZ               32
127
 
#define ME_PROJYZ               64
128
 
 
129
 
/* edcode (mface) */
130
 
#define ME_V1V2                 1
131
 
#define ME_V2V3                 2
132
 
#define ME_V3V1                 4
133
 
#define ME_V3V4                 4
134
 
#define ME_V4V1                 8
135
 
 
136
 
/* flag (mface) */
137
 
#define ME_SMOOTH               1
138
 
 
139
 
 
140
129
#define TF_DYNAMIC              1
141
130
/* #define TF_INVISIBLE 2 */
142
131
#define TF_TEX                  4
169
158
#define TF_ALPHA        2
170
159
#define TF_SUB          3
171
160
 
172
 
/* mvert->flag (1=select) */
173
 
#define ME_SPHERETEST   2
174
 
#define ME_SPHERETEMP   4
175
 
#define ME_HIDE                 16
 
161
/* tface->unwrap */
 
162
#define TF_SEAM1        1
 
163
#define TF_SEAM2        2
 
164
#define TF_SEAM3        4
 
165
#define TF_SEAM4        8
 
166
#define TF_PIN1     16
 
167
#define TF_PIN2     32
 
168
#define TF_PIN3     64
 
169
#define TF_PIN4     128
176
170
 
177
171
#define MESH_MAX_VERTS 2000000000L
178
172