vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GenClouds.h
Go to the documentation of this file.
1 
9 #ifndef _VRECKO_CLOUDS_GENCLOUDS_H
10 #define _VRECKO_CLOUDS_GENCLOUDS_H
11 
12 #include "cloud.h"
13 
18 struct CloudVoxel
19 {
20  bool act, hum, cld;
21  float p_ext, p_act, p_hum;
22 };
23 
30 void InitCloudGrowth(int ellips_a, int ellips_b, int ellips_c);
31 
38 bool f_act(unsigned int i, unsigned int j, unsigned int k);
39 
44 void GrowthSimulation(int timeSteps);
45 
53 float weightedSum(unsigned int i, unsigned int j, unsigned int k);
54 
61 void CreateCloudFromVoxels(Cloud& cloud, const osg::Vec3f& cloudPos, float scale);
62 
63 #endif