Blender V5.3
BLI_voxel.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11namespace blender {
12
14#define BLI_VOXEL_INDEX(x, y, z, res) \
15 ((int64_t)(x) + (int64_t)(y) * (int64_t)(res)[0] + \
16 (int64_t)(z) * (int64_t)(res)[0] * (int64_t)(res)[1])
17
18/* All input coordinates must be in bounding box 0.0 - 1.0. */
19
20float BLI_voxel_sample_trilinear(const float *data, const int res[3], const float co[3]);
21
22} // namespace blender
BMesh Iterators.
float BLI_voxel_sample_trilinear(const float *data, const int res[3], const float co[3])
Definition voxel.cc:46
BMesh const char void * data