Blender V5.3
BLI_voxel.hh File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

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

Functions

float blender::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 14 of file BLI_voxel.hh.

Referenced by blender::D().