Blender V2.61 - r43446
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, const int res[3], int x, int y, int z)
float voxel_sample_nearest (float *data, const int res[3], const float co[3])
BM_INLINE int FLOORI (float x)
BM_INLINE int _clamp (int a, int b, int c)
float voxel_sample_trilinear (float *data, const int res[3], const float co[3])
float voxel_sample_triquadratic (float *data, const int res[3], const float co[3])
float voxel_sample_tricubic (float *data, const int res[3], const float co[3], 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,
const int  res[3],
int  x,
int  y,
int  z 
)
BM_INLINE int FLOORI ( float  x)
float voxel_sample_nearest ( float *  data,
const int  res[3],
const float  co[3] 
)

Definition at line 48 of file voxel.c.

References D().

Referenced by voxeldatatex().

float voxel_sample_tricubic ( float *  data,
const int  res[3],
const float  co[3],
int  bspline 
)

Definition at line 135 of file voxel.c.

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

Referenced by voxeldatatex().

float voxel_sample_trilinear ( float *  data,
const int  res[3],
const float  co[3] 
)

Definition at line 73 of file voxel.c.

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

Referenced by voxeldatatex().

float voxel_sample_triquadratic ( float *  data,
const int  res[3],
const float  co[3] 
)

Definition at line 105 of file voxel.c.

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

Referenced by vol_get_precached_scattering(), and voxeldatatex().