Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/BLI_voxel.h')
-rw-r--r--source/blender/blenlib/BLI_voxel.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_voxel.h b/source/blender/blenlib/BLI_voxel.h
index 6d38109851d..2a02eb380b5 100644
--- a/source/blender/blenlib/BLI_voxel.h
+++ b/source/blender/blenlib/BLI_voxel.h
@@ -27,9 +27,8 @@
/** find the index number of a voxel, given x/y/z integer coords and resolution vector */
#define BLI_VOXEL_INDEX(x, y, z, res) \
- ((int64_t)(x) + \
- (int64_t)(y) * (int64_t)(res)[0] + \
- (int64_t)(z) * (int64_t)(res)[0] * (int64_t)(res)[1])
+ ((int64_t)(x) + (int64_t)(y) * (int64_t)(res)[0] + \
+ (int64_t)(z) * (int64_t)(res)[0] * (int64_t)(res)[1])
/* all input coordinates must be in bounding box 0.0 - 1.0 */
float BLI_voxel_sample_nearest(float *data, const int res[3], const float co[3]);