18#ifndef MRMESH_NO_OPENVDB
47 std::filesystem::path
path;
49 std::string
format =
"slice_{0:0{1}}.tif";
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:589
std::vector< IOFilter > IOFilters
Definition MRIOFilters.h:23
MRMESH_API VoidOrErrStr toRawFloat(const VdbVolume &vdbVolume, std::ostream &out, ProgressCallback callback={})
Save voxels in raw format with each value as 32-bit float in given binary stream.
MRMESH_API VoidOrErrStr saveSliceToImage(const std::filesystem::path &path, const VdbVolume &vdbVolume, const SlicePlane &slicePlain, int sliceNumber, ProgressCallback callback={})
save the slice by the active plane through the sliceNumber to an image file
MRMESH_API VoidOrErrStr toVdb(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save voxels file in OpenVDB format.
MRMESH_API VoidOrErrStr saveAllSlicesToImage(const VdbVolume &vdbVolume, const SavingSettings &settings)
save all slices by the active plane through all voxel planes along the active axis to an image file
MRMESH_API VoidOrErrStr toAnySupportedFormat(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Saves voxels in a file, detecting the format from file extension.
MRMESH_API VoidOrErrStr toGav(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save voxels in Gav-format in given file.
MRMESH_API const IOFilters Filters
MRMESH_API VoidOrErrStr toRawAutoname(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save raw voxels file, writing parameters in file name.
SlicePlane
Plane of slice in which to find path.
Definition MRVoxelPath.h:29
Definition MRVoxelsSave.h:11
Expected< void > VoidOrErrStr
return type for a void function that can produce an error string
Definition MRExpected.h:60
Definition MRVoxelsSave.h:45
ProgressCallback cb
Definition MRVoxelsSave.h:53
SlicePlane slicePlane
Definition MRVoxelsSave.h:51
std::filesystem::path path
Definition MRVoxelsSave.h:47
std::string format
Definition MRVoxelsSave.h:49