Blender V5.0
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])
long long int int64_t
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
Definition btQuadWord.h:117

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

Definition at line 12 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.cc.

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