Blender V4.3
BLI_voxel.h File Reference

Go to the source code of this file.

Macros

#define BLI_VOXEL_INDEX(x, y, z, res)
 

Functions

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

Macro Definition Documentation

◆ BLI_VOXEL_INDEX

#define BLI_VOXEL_INDEX ( x,
y,
z,
res )
Value:
((int64_t)(x) + (int64_t)(y) * (int64_t)(res)[0] + \
(int64_t)(z) * (int64_t)(res)[0] * (int64_t)(res)[1])
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
Definition btQuadWord.h:117
__int64 int64_t
Definition stdint.h:89

Calculate the index number of a voxel, given x/y/z integer coords and resolution vector.

Definition at line 16 of file BLI_voxel.h.

Referenced by D().

Function Documentation

◆ BLI_voxel_sample_trilinear()

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

Definition at line 44 of file voxel.c.

References _clamp(), float, FLOORI(), v, w(), and z().