Blender V5.0
BLI_voxel.h
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
12#define BLI_VOXEL_INDEX(x, y, z, res) \
13 ((int64_t)(x) + (int64_t)(y) * (int64_t)(res)[0] + \
14 (int64_t)(z) * (int64_t)(res)[0] * (int64_t)(res)[1])
15
16/* All input coordinates must be in bounding box 0.0 - 1.0. */
17
18float BLI_voxel_sample_trilinear(const float *data, const int res[3], const float co[3]);
float BLI_voxel_sample_trilinear(const float *data, const int res[3], const float co[3])
Definition voxel.cc:44
BMesh const char void * data