Blender  V2.59
Functions
voxel.c File Reference
#include "BLI_voxel.h"
#include "BLI_utildefines.h"

Go to the source code of this file.

Functions

BM_INLINE float D (float *data, int *res, int x, int y, int z)
float voxel_sample_nearest (float *data, int *res, float *co)
BM_INLINE int FLOORI (float x)
BM_INLINE int _clamp (int a, int b, int c)
float voxel_sample_trilinear (float *data, int *res, float *co)
float voxel_sample_triquadratic (float *data, int *res, float *co)
float voxel_sample_tricubic (float *data, int *res, float *co, int bspline)

Detailed Description

Definition in file voxel.c.


Function Documentation

BM_INLINE int _clamp ( int  a,
int  b,
int  c 
)
BM_INLINE float D ( float *  data,
int *  res,
int  x,
int  y,
int  z 
)

Definition at line 39 of file voxel.c.

References CLAMP(), and V_I.

Referenced by dblur(), feline_eval(), FHT2D(), md5_process_block(), TNT::QR_factor(), TNT::R_solve(), and voxel_sample_nearest().

BM_INLINE int FLOORI ( float  x)
float voxel_sample_nearest ( float *  data,
int *  res,
float *  co 
)

Definition at line 49 of file voxel.c.

References D().

Referenced by voxeldatatex().

float voxel_sample_tricubic ( float *  data,
int *  res,
float *  co,
int  bspline 
)

Definition at line 136 of file voxel.c.

References _clamp(), FLOORI(), simple_enum_gen::w, and ShadeResult::z.

Referenced by voxeldatatex().

float voxel_sample_trilinear ( float *  data,
int *  res,
float *  co 
)

Definition at line 74 of file voxel.c.

References _clamp(), FLOORI(), simple_enum_gen::w, and ShadeResult::z.

Referenced by voxeldatatex().

float voxel_sample_triquadratic ( float *  data,
int *  res,
float *  co 
)

Definition at line 106 of file voxel.c.

References _clamp(), FLOORI(), simple_enum_gen::w, and ShadeResult::z.

Referenced by vol_get_precached_scattering(), and voxeldatatex().