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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Fittl
  • Date: 2006-09-20 01:57:27 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060920015727-gmoqlxwstx9wwqs3
Tags: 2.42a-1ubuntu1
* Merge from Debian unstable (Closes: Malone #55903). Remaining changes:
  - debian/genpot: Add python scripts from Lee June <blender@eyou.com> to
    generate a reasonable PO template from the sources. Since gettext is used
    in a highly nonstandard way, xgettext does not work for this job.
  - debian/rules: Call the scripts, generate po/blender.pot, and clean it up
    in the clean target.
  - Add a proper header to the generated PO template.
* debian/control: Build depend on libavformat-dev >= 3:0.cvs20060823-3.1,
  otherwise this package will FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#ifndef DNA_OBJECT_FLUIDSIM_H
34
34
#define DNA_OBJECT_FLUIDSIM_H
35
35
 
 
36
#include "DNA_ID.h"
36
37
 
37
38
#ifdef __cplusplus
38
39
extern "C" {
39
40
#endif
40
41
        
41
42
struct Mesh;
 
43
struct Ipo;
 
44
struct MVert;
42
45
        
43
46
typedef struct FluidsimSettings {
44
47
        /* domain,fluid or obstacle */
87
90
        /* store start coords of axis aligned bounding box together with size */
88
91
        /* values are inited during derived mesh display */
89
92
        float bbStart[3], bbSize[3];
 
93
 
 
94
        /* animated params */
 
95
        struct Ipo *ipo;
 
96
 
 
97
        /* additional flags depending on the type, lower short contains flags
 
98
         * to check validity, higher short additional flags */
 
99
        short typeFlags;
 
100
        /* switch off velocity genration, volume init type for fluid/obstacles (volume=1,shell=2,both=3) */
 
101
        char  domainNovecgen,volumeInitType;
 
102
 
 
103
        /* boundary "stickiness" for part slip values */
 
104
        float partSlipValue;
 
105
 
 
106
        /* number of tracers to generate */
 
107
        int generateTracers;
 
108
        /* particle generation - on if >0, then determines amount (experimental...) */
 
109
        float generateParticles;
 
110
        /* smooth fluid surface? */
 
111
        float surfaceSmoothing;
 
112
 
 
113
        /* particle display - size scaling, and alpha influence */
 
114
        float particleInfSize, particleInfAlpha;
 
115
        /* testing vars */
 
116
        float farFieldSize;
 
117
 
 
118
        /* save fluidsurface normals in mvert.no, and surface vertex velocities (if available) in mvert.co */
 
119
        struct MVert *meshSurfNormals;
 
120
 
90
121
} FluidsimSettings;
91
122
 
92
123
/* ob->fluidsimSettings defines */
96
127
#define OB_FLUIDSIM_OBSTACLE            8
97
128
#define OB_FLUIDSIM_INFLOW      16
98
129
#define OB_FLUIDSIM_OUTFLOW     32
 
130
#define OB_FLUIDSIM_PARTICLE    64
 
131
 
 
132
#define OB_TYPEFLAG_START       0
 
133
#define OB_FSGEO_THIN           (1<<(OB_TYPEFLAG_START+1))
 
134
#define OB_FSBND_NOSLIP         (1<<(OB_TYPEFLAG_START+2))
 
135
#define OB_FSBND_PARTSLIP       (1<<(OB_TYPEFLAG_START+3))
 
136
#define OB_FSBND_FREESLIP       (1<<(OB_TYPEFLAG_START+4))
 
137
#define OB_FSINFLOW_LOCALCOORD  (1<<(OB_TYPEFLAG_START+5))
 
138
 
 
139
// guiDisplayMode particle flags
 
140
#define OB_FSDOM_GEOM     1
 
141
#define OB_FSDOM_PREVIEW  2
 
142
#define OB_FSDOM_FINAL    3
 
143
#define OB_FSPART_BUBBLE  (1<<1)
 
144
#define OB_FSPART_DROP    (1<<2)
 
145
#define OB_FSPART_NEWPART (1<<3)
 
146
#define OB_FSPART_FLOAT   (1<<4)
99
147
 
100
148
#ifdef __cplusplus
101
149
}