diff options
Diffstat (limited to 'source/blender/geometry/GEO_mesh_to_volume.hh')
-rw-r--r-- | source/blender/geometry/GEO_mesh_to_volume.hh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/geometry/GEO_mesh_to_volume.hh b/source/blender/geometry/GEO_mesh_to_volume.hh index 384293df336..c95b472936b 100644 --- a/source/blender/geometry/GEO_mesh_to_volume.hh +++ b/source/blender/geometry/GEO_mesh_to_volume.hh @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include "BLI_float4x4.hh" +#include "BLI_function_ref.hh" #include "BLI_string_ref.hh" #include "DNA_mesh_types.h" @@ -28,9 +29,13 @@ struct MeshToVolumeResolution { }; #ifdef WITH_OPENVDB + +/** + * \param bounds_fn: Return the bounds of the mesh positions, + * used for deciding the voxel size in "Amount" mode. + */ float volume_compute_voxel_size(const Depsgraph *depsgraph, - const float3 &bb_min, - const float3 &bb_max, + FunctionRef<void(float3 &r_min, float3 &r_max)> bounds_fn, const MeshToVolumeResolution resolution, float exterior_band_width, const float4x4 &transform); |