MeshLib Documentation
Loading...
Searching...
No Matches
MRVoxelsSave.h File Reference
#include "MRVoxelsFwd.h"
#include "MRVoxelPath.h"
#include "MRVoxelsVolume.h"
#include "MRMesh/MRIOFormatsRegistry.h"
#include <filesystem>

Go to the source code of this file.

Classes

struct  MR::VoxelsSave::SavingSettings
 

Namespaces

namespace  MR
 
namespace  MR::VoxelsSave
 

Typedefs

using MR::VoxelsSave::VoxelsSaver = Expected<void>( * )( const VdbVolume&, const std::filesystem::path&, ProgressCallback )
 

Functions

MRVOXELS_API Expected< void > MR::VoxelsSave::toRawAutoname (const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
 Save raw voxels file, writing parameters in file name.
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toRawAutoname (const SimpleVolume &simpleVolume, const std::filesystem::path &file, ProgressCallback callback={})
 
MRVOXELS_API Expected< void > MR::VoxelsSave::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.
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toRawFloat (const SimpleVolume &simpleVolume, std::ostream &out, ProgressCallback callback={})
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toGav (const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
 Save voxels in Gav-format in given destination.
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toGav (const VdbVolume &vdbVolume, std::ostream &out, ProgressCallback callback={})
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toGav (const SimpleVolumeMinMax &simpleVolumeMinMax, const std::filesystem::path &file, ProgressCallback callback={})
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toGav (const SimpleVolumeMinMax &simpleVolumeMinMax, std::ostream &out, ProgressCallback callback={})
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toGav (const SimpleVolume &simpleVolume, const std::filesystem::path &file, ProgressCallback callback={})
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toGav (const SimpleVolume &simpleVolume, std::ostream &out, ProgressCallback callback={})
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toVdb (const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
 Save voxels file in OpenVDB format.
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toAnySupportedFormat (const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
 Saves voxels in a file, detecting the format from file extension.
 
MRVOXELS_API Expected< void > MR::VoxelsSave::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
 
MRVOXELS_API Expected< void > MR::VoxelsSave::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
 
MRVOXELS_API Expected< void > MR::saveObjectVoxelsToFile (const Object &object, const std::filesystem::path &path, const ProgressCallback &callback={})