MeshLib Documentation
Loading...
Searching...
No Matches
Points Save

Functions

MRMESH_API Expected< void > MR::PointsSave::toXyz (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::PointsSave::toXyz (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::PointsSave::toXyzn (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::PointsSave::toXyzn (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::PointsSave::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 > MR::PointsSave::toAsc (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::PointsSave::toPly (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
 saves in .ply file
 
MRMESH_API Expected< void > MR::PointsSave::toPly (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::PointsSave::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 > MR::PointsSave::toAnySupportedFormat (const PointCloud &points, const std::string &extension, std::ostream &out, const SaveSettings &settings={})
 extension in *.ext format
 

Detailed Description

Function Documentation

◆ toAnySupportedFormat() [1/2]

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

detects the format from file extension and save points to it

◆ toAnySupportedFormat() [2/2]

MRMESH_API Expected< void > MR::PointsSave::toAnySupportedFormat ( const PointCloud & points,
const std::string & extension,
std::ostream & out,
const SaveSettings & settings = {} )

extension in *.ext format

◆ toAsc() [1/2]

MRMESH_API Expected< void > MR::PointsSave::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

◆ toAsc() [2/2]

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

◆ toPly() [1/2]

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

saves in .ply file

◆ toPly() [2/2]

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

◆ toXyz() [1/2]

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

save points without normals in textual .xyz file; each output line contains [x, y, z], where x, y, z are point coordinates

◆ toXyz() [2/2]

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

◆ toXyzn() [1/2]

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

save points with normals in textual .xyzn file; each output line contains [x, y, z, nx, ny, nz], where x, y, z are point coordinates and nx, ny, nz are the components of point normal

◆ toXyzn() [2/2]

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