Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Thuerey <nils@thuerey.de>2005-10-10 10:59:47 +0400
committerNils Thuerey <nils@thuerey.de>2005-10-10 10:59:47 +0400
commit328eeaf10b342f3ec1b55e817b20b8742ee8adc8 (patch)
tree21a505e1813d5470e9d634d382b9c7564980dbb2 /intern/elbeem
parent4cea576cedfd65c4432bedcb46ffb4ce8285d841 (diff)
- added option to switch off compiling elbeem to scons files (set USE_FLUIDSIM=true)
in this case only the new blenderdummy.cpp and utilities.cpp have to be compiled - restructured gui: * domain options split up into 2 sections * added compressibility and refinement settings * added inflow/outflow object types - increased progress bar by 1
Diffstat (limited to 'intern/elbeem')
-rw-r--r--intern/elbeem/SConscript76
-rw-r--r--intern/elbeem/intern/blenderdummy.cpp19
2 files changed, 61 insertions, 34 deletions
diff --git a/intern/elbeem/SConscript b/intern/elbeem/SConscript
index c882f5186e3..7d6cba24f2c 100644
--- a/intern/elbeem/SConscript
+++ b/intern/elbeem/SConscript
@@ -1,44 +1,52 @@
#!/usr/bin/python
Import ('library_env')
Import('user_options_dict');
+Import('use_fluidsim');
-# print "Including El'Beem Fluid Simulation..." # debug
elbeem_env = library_env.Copy();
elbeem_env.Append(CPPDEFINES= 'NOGUI');
elbeem_env.Append(CPPDEFINES= [('ELBEEM_BLENDER',1)] );
-
-elbeem_env.Append (CPPPATH = user_options_dict['PNG_INCLUDE'])
-elbeem_env.Append (CPPPATH = user_options_dict['Z_INCLUDE'])
-elbeem_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
-
-
-# main build----------------------------------------
-
-Sources = [
-
- "intern/cfgparser.cpp",
- "intern/cfglexer.cpp",
-
- "intern/attributes.cpp",
- "intern/elbeem.cpp",
- "intern/factory_fsgr.cpp",
- "intern/isosurface.cpp",
- "intern/lbminterface.cpp",
- "intern/ntl_blenderdumper.cpp",
- "intern/ntl_bsptree.cpp",
- "intern/ntl_geometrymodel.cpp",
- "intern/ntl_geometryobject.cpp",
- "intern/ntl_lightobject.cpp",
- "intern/ntl_ray.cpp",
- "intern/ntl_raytracer.cpp",
- "intern/ntl_scene.cpp",
- "intern/parametrizer.cpp",
- "intern/particletracer.cpp",
- "intern/simulation_object.cpp",
- "intern/utilities.cpp",
- "intern/blendercall.cpp"
-
- ]; # sources
+
+if use_fluidsim=='false':
+ # print "El'Beem Fluid Simulation Disabled..." # debug
+ elbeem_env.Append (CPPPATH = user_options_dict['PNG_INCLUDE'])
+ # dummy interface build
+ Sources = [
+ "intern/utilities.cpp",
+ "intern/blenderdummy.cpp"
+ ]; # sources
+else:
+ # print "Including El'Beem Fluid Simulation..." # debug
+ elbeem_env.Append (CPPPATH = user_options_dict['PNG_INCLUDE'])
+ elbeem_env.Append (CPPPATH = user_options_dict['Z_INCLUDE'])
+ elbeem_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
+
+ # main build----------------------------------------
+ Sources = [
+
+ "intern/cfgparser.cpp",
+ "intern/cfglexer.cpp",
+
+ "intern/attributes.cpp",
+ "intern/elbeem.cpp",
+ "intern/factory_fsgr.cpp",
+ "intern/isosurface.cpp",
+ "intern/lbminterface.cpp",
+ "intern/ntl_blenderdumper.cpp",
+ "intern/ntl_bsptree.cpp",
+ "intern/ntl_geometrymodel.cpp",
+ "intern/ntl_geometryobject.cpp",
+ "intern/ntl_lightobject.cpp",
+ "intern/ntl_ray.cpp",
+ "intern/ntl_raytracer.cpp",
+ "intern/ntl_scene.cpp",
+ "intern/parametrizer.cpp",
+ "intern/particletracer.cpp",
+ "intern/simulation_object.cpp",
+ "intern/utilities.cpp",
+ "intern/blendercall.cpp"
+
+ ]; # sources
elbeem_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_elbeem', source=Sources)
diff --git a/intern/elbeem/intern/blenderdummy.cpp b/intern/elbeem/intern/blenderdummy.cpp
new file mode 100644
index 00000000000..4d672dee528
--- /dev/null
+++ b/intern/elbeem/intern/blenderdummy.cpp
@@ -0,0 +1,19 @@
+/******************************************************************************
+ *
+ * El'Beem - Free Surface Fluid Simulation with the Lattice Boltzmann Method
+ * All code distributed as part of El'Beem is covered by the version 2 of the
+ * GNU General Public License. See the file COPYING for details.
+ * Copyright 2003-2005 Nils Thuerey
+ *
+ * Blender call for disabled fluidsim
+ *
+ *****************************************************************************/
+
+#include <stdlib.h>
+
+extern "C"
+int performElbeemSimulation(char *cfgfilename) {
+ return 1;
+};
+
+