Made API for elbeem sane; it was prototyping and exporting
functions from old src/ !

Note; elbeem.h is not exported anymore.
This commit is contained in:
Ton Roosendaal 2009-01-24 13:47:20 +00:00
parent 0ac35ca7c1
commit 7f780bffd6

@ -31,36 +31,11 @@
#ifndef LBM_FLUIDSIM_H #ifndef LBM_FLUIDSIM_H
#define LBM_FLUIDSIM_H #define LBM_FLUIDSIM_H
struct Mesh; /* note; elbeem.h was exported all over, should only expose LBM_fluidsim.h */
struct DerivedMesh; #include "elbeem.h"
struct Object;
struct fluidsimDerivedMesh;
extern double fluidsimViscosityPreset[6];
extern char* fluidsimViscosityPresetString[6];
/* allocates and initializes fluidsim data */
struct FluidsimSettings* fluidsimSettingsNew(struct Object *srcob);
/* frees internal data itself */
void fluidsimSettingsFree(struct FluidsimSettings* sb);
/* duplicate internal data */
struct FluidsimSettings* fluidsimSettingsCopy(struct FluidsimSettings* sb);
/* export blender geometry to fluid solver */
void fluidsimBake(struct Object* ob);
/* read & write bobj / bobj.gz files (e.g. for fluid sim surface meshes) */
void writeBobjgz(char *filename, struct Object *ob, int useGlobalCoords, int append, float time);
struct Mesh* readBobjgz(char *filename, struct Mesh *orgmesh, float* bbstart, float *bbsize);
/* create derived mesh for fluid sim objects */
// WARNING - currently implemented in DerivedMesh.c!
void loadFluidsimMesh(struct Object *srcob, int useRenderParams);
/* run simulation with given config file */ /* run simulation with given config file */
// WARNING - implemented in intern/elbeem/blendercall.cpp // implemented in intern/elbeem/blendercall.cpp
int performElbeemSimulation(char *cfgfilename); int performElbeemSimulation(char *cfgfilename);