MeshLib Documentation
Loading...
Searching...
No Matches
MRPointsSave.h File Reference
#include "MRMeshFwd.h"
#include "MRExpected.h"
#include "MRPointCloud.h"
#include "MRIOFilters.h"
#include "MRSaveSettings.h"
#include <filesystem>
#include <ostream>

Go to the source code of this file.

Namespaces

namespace  MR
 
namespace  MR::PointsSave
 

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