Blender
V4.3
source
blender
blenlib
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
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
16
#define BLI_VOXEL_INDEX(x, y, z, res) \
17
((int64_t)(x) + (int64_t)(y) * (int64_t)(res)[0] + \
18
(int64_t)(z) * (int64_t)(res)[0] * (int64_t)(res)[1])
19
20
/* All input coordinates must be in bounding box 0.0 - 1.0. */
21
22
float
BLI_voxel_sample_trilinear
(
const
float
*data,
const
int
res[3],
const
float
co[3]);
23
24
#ifdef __cplusplus
25
}
26
#endif
BLI_voxel_sample_trilinear
float BLI_voxel_sample_trilinear(const float *data, const int res[3], const float co[3])
Definition
voxel.c:44
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0