Blender V2.61 - r43446
|
#include "FLUID_3D.h"
#include "WTURBULENCE.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
Go to the source code of this file.
Functions | |
FLUID_3D * | smoke_init (int *res, float *p0) |
WTURBULENCE * | smoke_turbulence_init (int *res, int amplify, int noisetype) |
void | smoke_free (FLUID_3D *fluid) |
void | smoke_turbulence_free (WTURBULENCE *wt) |
size_t | smoke_get_index (int x, int max_x, int y, int max_y, int z) |
size_t | smoke_get_index2d (int x, int max_x, int y) |
void | smoke_step (FLUID_3D *fluid, size_t framenr, float fps) |
void | smoke_turbulence_step (WTURBULENCE *wt, FLUID_3D *fluid) |
void | smoke_initBlenderRNA (FLUID_3D *fluid, float *alpha, float *beta, float *dt_factor, float *vorticity, int *border_colli) |
void | smoke_dissolve (FLUID_3D *fluid, int speed, int log) |
void | smoke_dissolve_wavelet (WTURBULENCE *wt, int speed, int log) |
void | smoke_initWaveletBlenderRNA (WTURBULENCE *wt, float *strength) |
template<class T > | |
T | ABS (T a) |
void | smoke_export (FLUID_3D *fluid, float *dt, float *dx, float **dens, float **densold, float **heat, float **heatold, float **vx, float **vy, float **vz, float **vxold, float **vyold, float **vzold, unsigned char **obstacles) |
void | smoke_turbulence_export (WTURBULENCE *wt, float **dens, float **densold, float **tcu, float **tcv, float **tcw) |
float * | smoke_get_density (FLUID_3D *fluid) |
float * | smoke_get_heat (FLUID_3D *fluid) |
float * | smoke_get_velocity_x (FLUID_3D *fluid) |
float * | smoke_get_velocity_y (FLUID_3D *fluid) |
float * | smoke_get_velocity_z (FLUID_3D *fluid) |
float * | smoke_get_force_x (FLUID_3D *fluid) |
float * | smoke_get_force_y (FLUID_3D *fluid) |
float * | smoke_get_force_z (FLUID_3D *fluid) |
float * | smoke_turbulence_get_density (WTURBULENCE *wt) |
void | smoke_turbulence_get_res (WTURBULENCE *wt, int *res) |
unsigned char * | smoke_get_obstacle (FLUID_3D *fluid) |
void | smoke_turbulence_set_noise (WTURBULENCE *wt, int type) |
Definition in file smoke_API.cpp.
T ABS | ( | T | a | ) | [inline] |
Definition at line 214 of file smoke_API.cpp.
void smoke_dissolve | ( | FLUID_3D * | fluid, |
int | speed, | ||
int | log | ||
) |
Definition at line 128 of file smoke_API.cpp.
References FLUID_3D::_density, FLUID_3D::_heat, FLUID_3D::_xRes, FLUID_3D::_yRes, FLUID_3D::_zRes, abs(), i, and size().
void smoke_dissolve_wavelet | ( | WTURBULENCE * | wt, |
int | speed, | ||
int | log | ||
) |
Definition at line 174 of file smoke_API.cpp.
References WTURBULENCE::getDensityBig(), WTURBULENCE::getResBig(), i, and size().
void smoke_export | ( | FLUID_3D * | fluid, |
float * | dt, | ||
float * | dx, | ||
float ** | dens, | ||
float ** | densold, | ||
float ** | heat, | ||
float ** | heatold, | ||
float ** | vx, | ||
float ** | vy, | ||
float ** | vz, | ||
float ** | vxold, | ||
float ** | vyold, | ||
float ** | vzold, | ||
unsigned char ** | obstacles | ||
) |
Definition at line 219 of file smoke_API.cpp.
References FLUID_3D::_density, FLUID_3D::_densityOld, FLUID_3D::_dt, FLUID_3D::_dx, FLUID_3D::_heat, FLUID_3D::_heatOld, FLUID_3D::_obstacles, FLUID_3D::_xVelocity, FLUID_3D::_xVelocityOld, FLUID_3D::_yVelocity, FLUID_3D::_yVelocityOld, FLUID_3D::_zVelocity, and FLUID_3D::_zVelocityOld.
void smoke_free | ( | FLUID_3D * | fluid | ) |
Definition at line 58 of file smoke_API.cpp.
References NULL.
float* smoke_get_density | ( | FLUID_3D * | fluid | ) |
Definition at line 249 of file smoke_API.cpp.
References FLUID_3D::_density.
Referenced by draw_object(), GPU_create_smoke(), and init_frame_smoke().
float* smoke_get_force_x | ( | FLUID_3D * | fluid | ) |
Definition at line 274 of file smoke_API.cpp.
References FLUID_3D::_xForce.
float* smoke_get_force_y | ( | FLUID_3D * | fluid | ) |
Definition at line 279 of file smoke_API.cpp.
References FLUID_3D::_yForce.
float* smoke_get_force_z | ( | FLUID_3D * | fluid | ) |
Definition at line 284 of file smoke_API.cpp.
References FLUID_3D::_zForce.
float* smoke_get_heat | ( | FLUID_3D * | fluid | ) |
Definition at line 254 of file smoke_API.cpp.
References FLUID_3D::_heat.
Referenced by init_frame_smoke().
size_t smoke_get_index | ( | int | x, |
int | max_x, | ||
int | y, | ||
int | max_y, | ||
int | z | ||
) |
Definition at line 70 of file smoke_API.cpp.
Referenced by draw_object().
size_t smoke_get_index2d | ( | int | x, |
int | max_x, | ||
int | y | ||
) |
Definition at line 76 of file smoke_API.cpp.
unsigned char* smoke_get_obstacle | ( | FLUID_3D * | fluid | ) |
Definition at line 305 of file smoke_API.cpp.
References FLUID_3D::_obstacles.
float* smoke_get_velocity_x | ( | FLUID_3D * | fluid | ) |
Definition at line 259 of file smoke_API.cpp.
References FLUID_3D::_xVelocity.
Referenced by init_frame_smoke().
float* smoke_get_velocity_y | ( | FLUID_3D * | fluid | ) |
Definition at line 264 of file smoke_API.cpp.
References FLUID_3D::_yVelocity.
Referenced by init_frame_smoke().
float* smoke_get_velocity_z | ( | FLUID_3D * | fluid | ) |
Definition at line 269 of file smoke_API.cpp.
References FLUID_3D::_zVelocity.
Referenced by init_frame_smoke().
FLUID_3D* smoke_init | ( | int * | res, |
float * | p0 | ||
) | [read] |
Definition at line 39 of file smoke_API.cpp.
References FLUID_3D::FLUID_3D().
void smoke_initBlenderRNA | ( | FLUID_3D * | fluid, |
float * | alpha, | ||
float * | beta, | ||
float * | dt_factor, | ||
float * | vorticity, | ||
int * | border_colli | ||
) |
Definition at line 123 of file smoke_API.cpp.
References FLUID_3D::initBlenderRNA().
void smoke_initWaveletBlenderRNA | ( | WTURBULENCE * | wt, |
float * | strength | ||
) |
Definition at line 209 of file smoke_API.cpp.
References WTURBULENCE::initBlenderRNA().
void smoke_step | ( | FLUID_3D * | fluid, |
size_t | framenr, | ||
float | fps | ||
) |
Definition at line 81 of file smoke_API.cpp.
References FLUID_3D::_dtFactor, FLUID_3D::_xRes, FLUID_3D::_xVelocity, FLUID_3D::_yRes, FLUID_3D::_yVelocity, FLUID_3D::_zRes, FLUID_3D::_zVelocity, DT_DEFAULT, i, size(), sqrt(), and FLUID_3D::step().
void smoke_turbulence_export | ( | WTURBULENCE * | wt, |
float ** | dens, | ||
float ** | densold, | ||
float ** | tcu, | ||
float ** | tcv, | ||
float ** | tcw | ||
) |
Definition at line 237 of file smoke_API.cpp.
References WTURBULENCE::_densityBig, WTURBULENCE::_densityBigOld, WTURBULENCE::_tcU, WTURBULENCE::_tcV, and WTURBULENCE::_tcW.
void smoke_turbulence_free | ( | WTURBULENCE * | wt | ) |
Definition at line 64 of file smoke_API.cpp.
References NULL.
float* smoke_turbulence_get_density | ( | WTURBULENCE * | wt | ) |
Definition at line 289 of file smoke_API.cpp.
References WTURBULENCE::getDensityBig(), and NULL.
Referenced by GPU_create_smoke(), and init_frame_smoke().
void smoke_turbulence_get_res | ( | WTURBULENCE * | wt, |
int * | res | ||
) |
Definition at line 294 of file smoke_API.cpp.
References WTURBULENCE::getResBig().
Referenced by init_frame_smoke().
WTURBULENCE* smoke_turbulence_init | ( | int * | res, |
int | amplify, | ||
int | noisetype | ||
) | [read] |
Definition at line 49 of file smoke_API.cpp.
References NULL.
void smoke_turbulence_set_noise | ( | WTURBULENCE * | wt, |
int | type | ||
) |
Definition at line 310 of file smoke_API.cpp.
References WTURBULENCE::setNoise().
void smoke_turbulence_step | ( | WTURBULENCE * | wt, |
FLUID_3D * | fluid | ||
) |
Definition at line 118 of file smoke_API.cpp.
References FLUID_3D::_dt, FLUID_3D::_dx, FLUID_3D::_obstacles, FLUID_3D::_xVelocity, FLUID_3D::_yVelocity, FLUID_3D::_zVelocity, and WTURBULENCE::stepTurbulenceFull().