diff options
author | Campbell Barton <campbell@blender.org> | 2022-01-18 05:05:07 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-01-18 06:13:58 +0300 |
commit | 20df402adc871a76cd98f7de116c48bebd151ce3 (patch) | |
tree | 7265aa7b2b4147f860697209ac15a32daf2744a3 /source/blender/blenkernel/BKE_volume_to_mesh.hh | |
parent | 7220897280e285305d8ab908a3ca95f8311dfa3e (diff) |
Cleanup: move docs to definition
Diffstat (limited to 'source/blender/blenkernel/BKE_volume_to_mesh.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_volume_to_mesh.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_volume_to_mesh.hh b/source/blender/blenkernel/BKE_volume_to_mesh.hh index b99ae625042..123cb33f24f 100644 --- a/source/blender/blenkernel/BKE_volume_to_mesh.hh +++ b/source/blender/blenkernel/BKE_volume_to_mesh.hh @@ -56,11 +56,20 @@ struct Mesh *volume_to_mesh(const openvdb::GridBase &grid, float threshold, float adaptivity); +/** + * Convert an OpenVDB volume grid to corresponding mesh data: vertex positions and quad and + * triangle indices. + */ struct OpenVDBMeshData volume_to_mesh_data(const openvdb::GridBase &grid, const VolumeToMeshResolution &resolution, float threshold, float adaptivity); +/** + * Convert mesh data from the format provided by OpenVDB into Blender's #Mesh data structure. + * This can be used to add mesh data from a grid into an existing mesh rather than merging multiple + * meshes later on. + */ void fill_mesh_from_openvdb_data(const Span<openvdb::Vec3s> vdb_verts, const Span<openvdb::Vec3I> vdb_tris, const Span<openvdb::Vec4I> vdb_quads, |