Blender V4.3
GEO_points_to_volume.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "BLI_string_ref.hh"
8
10
11struct Volume;
12
17namespace blender::geometry {
18
19#ifdef WITH_OPENVDB
20
24bke::VolumeGridData *fog_volume_grid_add_from_points(Volume *volume,
25 StringRefNull name,
26 Span<float3> positions,
27 Span<float> radii,
28 float voxel_size,
29 float density);
30
31bke::VolumeGrid<float> points_to_sdf_grid(Span<float3> positions,
32 Span<float> radii,
33 float voxel_size);
34
35#endif
36} // namespace blender::geometry