MeshLib
 
Loading...
Searching...
No Matches
Input/Output

Topics

 Base64
 
 DistanceMap Load
 
 DistanceMap Save
 
 Mesh Load
 
 Image Load
 
 Image Save
 
 IO Filters
 
 IO Formats Registry
 
 Lines Load
 
 Lines Save
 
 Mesh Load
 
 Mesh Load Obj
 
 Mesh Save
 
 Mesh Save Obj
 
 Points Save
 
 Serializer
 
 Stream Operators
 Overloaded operators for IO base structures (Vector, Matrix, Plane, AffineXf, ...)
 
 Voxels Load
 

Classes

struct  MR::VoxelsSave::SavingSettings
 

Functions

MRMESH_API Expected< PointCloudMR::PointsLoad::fromText (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from .csv, .asc, .xyz, .txt file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromText (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromPts (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from Laser scan plain data format (.pts) file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromPts (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromPly (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from .ply file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromPly (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromObj (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from .obj file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromObj (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromDxf (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromDxf (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromAnySupportedFormat (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 detects the format from file extension and loads points from it
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromAnySupportedFormat (std::istream &in, const std::string &extension, const PointsLoadSettings &settings={})
 extension in *.ext format
 
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::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::toGav (const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
 Save voxels in Gav-format in given file.
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toGav (const VdbVolume &vdbVolume, std::ostream &out, ProgressCallback callback={})
 Save voxels in Gav-format in given binary stream.
 
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
 

Detailed Description

Function Documentation

◆ fromAnySupportedFormat() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromAnySupportedFormat ( const std::filesystem::path & file,
const PointsLoadSettings & settings = {} )

detects the format from file extension and loads points from it

◆ fromAnySupportedFormat() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromAnySupportedFormat ( std::istream & in,
const std::string & extension,
const PointsLoadSettings & settings = {} )

extension in *.ext format

◆ fromDxf() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromDxf ( const std::filesystem::path & file,
const PointsLoadSettings & settings = {} )

◆ fromDxf() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromDxf ( std::istream & in,
const PointsLoadSettings & settings = {} )

◆ fromObj() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromObj ( const std::filesystem::path & file,
const PointsLoadSettings & settings = {} )

loads from .obj file

◆ fromObj() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromObj ( std::istream & in,
const PointsLoadSettings & settings = {} )

◆ fromPly() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromPly ( const std::filesystem::path & file,
const PointsLoadSettings & settings = {} )

loads from .ply file

◆ fromPly() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromPly ( std::istream & in,
const PointsLoadSettings & settings = {} )

◆ fromPts() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromPts ( const std::filesystem::path & file,
const PointsLoadSettings & settings = {} )

loads from Laser scan plain data format (.pts) file

◆ fromPts() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromPts ( std::istream & in,
const PointsLoadSettings & settings = {} )

◆ fromText() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromText ( const std::filesystem::path & file,
const PointsLoadSettings & settings = {} )

loads from .csv, .asc, .xyz, .txt file

◆ fromText() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromText ( std::istream & in,
const PointsLoadSettings & settings = {} )

◆ saveAllSlicesToImage()

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

◆ saveSliceToImage()

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

◆ toAnySupportedFormat()

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.

◆ toGav() [1/2]

MRVOXELS_API Expected< void > MR::VoxelsSave::toGav ( const VdbVolume & vdbVolume,
const std::filesystem::path & file,
ProgressCallback callback = {} )

Save voxels in Gav-format in given file.

◆ toGav() [2/2]

MRVOXELS_API Expected< void > MR::VoxelsSave::toGav ( const VdbVolume & vdbVolume,
std::ostream & out,
ProgressCallback callback = {} )

Save voxels in Gav-format in given binary stream.

◆ toRawAutoname()

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.

◆ toRawFloat()

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.

◆ toVdb()

MRVOXELS_API Expected< void > MR::VoxelsSave::toVdb ( const VdbVolume & vdbVolume,
const std::filesystem::path & file,
ProgressCallback callback = {} )

Save voxels file in OpenVDB format.