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::fromText (const std::filesystem::path &file, AffineXf3f *outXf=nullptr, ProgressCallback callback={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromText (std::istream &in, AffineXf3f *outXf=nullptr, ProgressCallback callback={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromPts (const std::filesystem::path &file, VertColors *colors=nullptr, AffineXf3f *outXf=nullptr, ProgressCallback callback={})
 loads from Laser scan plain data format (.pts) file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromPts (std::istream &in, VertColors *colors=nullptr, AffineXf3f *outXf=nullptr, ProgressCallback callback={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromCtm (const std::filesystem::path &file, VertColors *colors=nullptr, ProgressCallback callback={})
 loads from .ctm file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromCtm (std::istream &in, VertColors *colors=nullptr, ProgressCallback callback={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromPly (const std::filesystem::path &file, VertColors *colors=nullptr, ProgressCallback callback={})
 loads from .ply file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromPly (std::istream &in, VertColors *colors=nullptr, ProgressCallback callback={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromObj (const std::filesystem::path &file, ProgressCallback callback={})
 loads from .obj file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromObj (std::istream &in, ProgressCallback callback={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromE57 (const std::filesystem::path &file, VertColors *colors=nullptr, AffineXf3f *outXf=nullptr, ProgressCallback callback={})
 loads from .e57 file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromLas (const std::filesystem::path &file, VertColors *colors=nullptr, AffineXf3f *outXf=nullptr, ProgressCallback callback={})
 loads from .las file
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromLas (std::istream &in, VertColors *colors=nullptr, AffineXf3f *outXf=nullptr, ProgressCallback callback={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromDxf (const std::filesystem::path &file, ProgressCallback callback={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromDxf (std::istream &in, ProgressCallback callback={})
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromAnySupportedFormat (const std::filesystem::path &file, VertColors *colors=nullptr, AffineXf3f *outXf=nullptr, ProgressCallback callback={})
 detects the format from file extension and loads points from it
 
MRMESH_API Expected< PointCloudMR::PointsLoad::fromAnySupportedFormat (std::istream &in, const std::string &extension, VertColors *colors=nullptr, AffineXf3f *outXf=nullptr, ProgressCallback callback={})
 extension in *.ext format
 
MRMESH_API VoidOrErrStr MR::VoxelsSave::toRawAutoname (const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
 Save raw voxels file, writing parameters in file name.
 
MRMESH_API VoidOrErrStr 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.
 
MRMESH_API VoidOrErrStr MR::VoxelsSave::toGav (const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
 Save voxels in Gav-format in given file.
 
MRMESH_API VoidOrErrStr MR::VoxelsSave::toGav (const VdbVolume &vdbVolume, std::ostream &out, ProgressCallback callback={})
 Save voxels in Gav-format in given binary stream.
 
MRMESH_API VoidOrErrStr MR::VoxelsSave::toVdb (const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
 Save voxels file in OpenVDB format.
 
MRMESH_API VoidOrErrStr MR::VoxelsSave::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 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
 
MRMESH_API VoidOrErrStr 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
 

Variables

MRMESH_API const IOFilters MR::PointsLoad::Filters
 
MRMESH_API const IOFilters MR::VoxelsSave::Filters
 

Detailed Description

Function Documentation

◆ fromAnySupportedFormat() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromAnySupportedFormat ( const std::filesystem::path & file,
VertColors * colors = nullptr,
AffineXf3f * outXf = nullptr,
ProgressCallback callback = {} )

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,
VertColors * colors = nullptr,
AffineXf3f * outXf = nullptr,
ProgressCallback callback = {} )

extension in *.ext format

◆ fromCtm() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromCtm ( const std::filesystem::path & file,
VertColors * colors = nullptr,
ProgressCallback callback = {} )

loads from .ctm file

◆ fromCtm() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromCtm ( std::istream & in,
VertColors * colors = nullptr,
ProgressCallback callback = {} )

◆ fromDxf() [1/2]

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

◆ fromDxf() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromDxf ( std::istream & in,
ProgressCallback callback = {} )

◆ fromE57()

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromE57 ( const std::filesystem::path & file,
VertColors * colors = nullptr,
AffineXf3f * outXf = nullptr,
ProgressCallback callback = {} )

loads from .e57 file

◆ fromLas() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromLas ( const std::filesystem::path & file,
VertColors * colors = nullptr,
AffineXf3f * outXf = nullptr,
ProgressCallback callback = {} )

loads from .las file

◆ fromLas() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromLas ( std::istream & in,
VertColors * colors = nullptr,
AffineXf3f * outXf = nullptr,
ProgressCallback callback = {} )

◆ fromObj() [1/2]

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

loads from .obj file

◆ fromObj() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromObj ( std::istream & in,
ProgressCallback callback = {} )

◆ fromPly() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromPly ( const std::filesystem::path & file,
VertColors * colors = nullptr,
ProgressCallback callback = {} )

loads from .ply file

◆ fromPly() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromPly ( std::istream & in,
VertColors * colors = nullptr,
ProgressCallback callback = {} )

◆ fromPts() [1/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromPts ( const std::filesystem::path & file,
VertColors * colors = nullptr,
AffineXf3f * outXf = nullptr,
ProgressCallback callback = {} )

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

◆ fromPts() [2/2]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromPts ( std::istream & in,
VertColors * colors = nullptr,
AffineXf3f * outXf = nullptr,
ProgressCallback callback = {} )

◆ fromText() [1/4]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromText ( const std::filesystem::path & file,
AffineXf3f * outXf = nullptr,
ProgressCallback callback = {} )

◆ fromText() [2/4]

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

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

◆ fromText() [3/4]

MRMESH_API Expected< PointCloud > MR::PointsLoad::fromText ( std::istream & in,
AffineXf3f * outXf = nullptr,
ProgressCallback callback = {} )

◆ fromText() [4/4]

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

◆ saveAllSlicesToImage()

MRMESH_API VoidOrErrStr 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()

MRMESH_API VoidOrErrStr 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()

MRMESH_API VoidOrErrStr 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]

MRMESH_API VoidOrErrStr MR::VoxelsSave::toGav ( const VdbVolume & vdbVolume,
const std::filesystem::path & file,
ProgressCallback callback = {} )

Save voxels in Gav-format in given file.

◆ toGav() [2/2]

MRMESH_API VoidOrErrStr MR::VoxelsSave::toGav ( const VdbVolume & vdbVolume,
std::ostream & out,
ProgressCallback callback = {} )

Save voxels in Gav-format in given binary stream.

◆ toRawAutoname()

MRMESH_API VoidOrErrStr MR::VoxelsSave::toRawAutoname ( const VdbVolume & vdbVolume,
const std::filesystem::path & file,
ProgressCallback callback = {} )

Save raw voxels file, writing parameters in file name.

◆ toRawFloat()

MRMESH_API VoidOrErrStr 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()

MRMESH_API VoidOrErrStr MR::VoxelsSave::toVdb ( const VdbVolume & vdbVolume,
const std::filesystem::path & file,
ProgressCallback callback = {} )

Save voxels file in OpenVDB format.

Variable Documentation

◆ Filters [1/2]

MRMESH_API const IOFilters MR::PointsLoad::Filters
extern

◆ Filters [2/2]

MRMESH_API const IOFilters MR::VoxelsSave::Filters
extern