forked from bartvdbraak/blender
006d4d1176
interface for it is still missing. Right now there is only a simple hard coded example, that moves a single control particle with strong attraction and velocity forces through the domain. I added more detailed information about the control code to the wiki http://wiki.blender.org/index.php/SoCFluidDevelDoc#The_Fluid-Control_Branch , together with some thoughts on how a Blender integration could be done.
18 lines
440 B
Python
18 lines
440 B
Python
#!/usr/bin/python
|
|
import sys
|
|
import os
|
|
Import('env')
|
|
|
|
sources = env.Glob('intern/*.cpp')
|
|
|
|
defs = 'NOGUI ELBEEM_BLENDER=1 LBM_INCLUDE_CONTROL=1'
|
|
|
|
if env['WITH_BF_OPENMP'] == 1:
|
|
defs += ' PARALLEL'
|
|
|
|
if env['OURPLATFORM']=='win32-vc':
|
|
defs += ' USE_MSVC6FIXES'
|
|
incs = env['BF_PNG_INC'] + ' ' + env['BF_ZLIB_INC'] + ' ' +env['BF_SDL_INC']
|
|
|
|
env.BlenderLib ('bf_elbeem', sources, Split(incs), Split(defs), libtype='blender', priority=0 )
|