MeshLib
 
Loading...
Searching...
No Matches
MR::PointsSave Namespace Reference

Classes

struct  CtmSavePointsOptions
 
struct  PointsSaver
 

Typedefs

using PointsFileSaver = Expected<void>( * )( const PointCloud&, const std::filesystem::path&, const SaveSettings& )
 
using PointsStreamSaver = Expected<void>( * )( const PointCloud&, std::ostream&, const SaveSettings& )
 

Functions

MRIOEXTRAS_API Expected< void > toCtm (const PointCloud &points, const std::filesystem::path &file, const CtmSavePointsOptions &options)
 saves in .ctm file
 
MRIOEXTRAS_API Expected< void > toCtm (const PointCloud &points, std::ostream &out, const CtmSavePointsOptions &options)
 
MRIOEXTRAS_API Expected< void > toCtm (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRIOEXTRAS_API Expected< void > toCtm (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toXyz (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toXyz (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toXyzn (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toXyzn (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toAsc (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
 save points with normals in .xyzn format, and save points without normals in .xyz format
 
MRMESH_API Expected< void > toAsc (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toPly (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .ply file
 
MRMESH_API Expected< void > toPly (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > toAnySupportedFormat (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
 detects the format from file extension and save points to it
 
MRMESH_API Expected< void > toAnySupportedFormat (const PointCloud &points, const std::string &extension, std::ostream &out, const SaveSettings &settings={})
 extension in *.ext format
 

Typedef Documentation

◆ PointsFileSaver

using MR::PointsSave::PointsFileSaver = Expected<void>( * )( const PointCloud&, const std::filesystem::path&, const SaveSettings& )

◆ PointsStreamSaver

using MR::PointsSave::PointsStreamSaver = Expected<void>( * )( const PointCloud&, std::ostream&, const SaveSettings& )

Function Documentation

◆ toCtm() [1/4]

MRIOEXTRAS_API Expected< void > MR::PointsSave::toCtm ( const PointCloud & points,
const std::filesystem::path & file,
const CtmSavePointsOptions & options )

saves in .ctm file

◆ toCtm() [2/4]

MRIOEXTRAS_API Expected< void > MR::PointsSave::toCtm ( const PointCloud & points,
const std::filesystem::path & file,
const SaveSettings & settings = {} )

◆ toCtm() [3/4]

MRIOEXTRAS_API Expected< void > MR::PointsSave::toCtm ( const PointCloud & points,
std::ostream & out,
const CtmSavePointsOptions & options )

◆ toCtm() [4/4]

MRIOEXTRAS_API Expected< void > MR::PointsSave::toCtm ( const PointCloud & points,
std::ostream & out,
const SaveSettings & settings = {} )