Blender V2.61 - r43446
Functions

smoke_API.cpp File Reference

#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_3Dsmoke_init (int *res, float *p0)
WTURBULENCEsmoke_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 >
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)

Detailed Description

Definition in file smoke_API.cpp.


Function Documentation

template<class T >
T ABS ( a) [inline]

Definition at line 214 of file smoke_API.cpp.

void smoke_dissolve ( FLUID_3D fluid,
int  speed,
int  log 
)
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 
)
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 
)
void smoke_turbulence_export ( WTURBULENCE wt,
float **  dens,
float **  densold,
float **  tcu,
float **  tcv,
float **  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 
)