~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/blenlib/BLI_voxel.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 */
34
34
 
35
35
/** find the index number of a voxel, given x/y/z integer coords and resolution vector */
36
 
#define V_I(x, y, z, res) ( (z)*(res)[1]*(res)[0] + (y)*(res)[0] + (x) )
 
36
#define BLI_VOXEL_INDEX(x, y, z, res) ((z) * (res)[1] * (res)[0] + (y) * (res)[0] + (x))
37
37
 
38
38
/* all input coordinates must be in bounding box 0.0 - 1.0 */
39
 
float voxel_sample_nearest(float *data, const int res[3], const float co[3]);
40
 
float voxel_sample_trilinear(float *data, const int res[3], const float co[3]);
41
 
float voxel_sample_triquadratic(float *data, const int res[3], const float co[3]);
42
 
float voxel_sample_tricubic(float *data, const int res[3], const float co[3], int bspline);
 
39
float BLI_voxel_sample_nearest(float *data, const int res[3], const float co[3]);
 
40
float BLI_voxel_sample_trilinear(float *data, const int res[3], const float co[3]);
 
41
float BLI_voxel_sample_triquadratic(float *data, const int res[3], const float co[3]);
 
42
float BLI_voxel_sample_tricubic(float *data, const int res[3], const float co[3], int bspline);
43
43
 
44
44
#endif /* __BLI_VOXEL_H__ */