MeshLib Documentation
Loading...
Searching...
No Matches
MRMesh/MRPointsLoad.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRExpected.h"
5#include "MRIOFilters.h"
7
8#include <filesystem>
9
10namespace MR::PointsLoad
11{
12
16
18MRMESH_API Expected<PointCloud> fromText( const std::filesystem::path& file, const PointsLoadSettings& settings = {} );
19MRMESH_API Expected<PointCloud> fromText( std::istream& in, const PointsLoadSettings& settings = {} );
20
22MRMESH_API Expected<PointCloud> fromPts( const std::filesystem::path& file, const PointsLoadSettings& settings = {} );
23MRMESH_API Expected<PointCloud> fromPts( std::istream& in, const PointsLoadSettings& settings = {} );
24
26MRMESH_API Expected<PointCloud> fromPly( const std::filesystem::path& file, const PointsLoadSettings& settings = {} );
27MRMESH_API Expected<PointCloud> fromPly( std::istream& in, const PointsLoadSettings& settings = {} );
28
30MRMESH_API Expected<PointCloud> fromObj( const std::filesystem::path& file, const PointsLoadSettings& settings = {} );
31MRMESH_API Expected<PointCloud> fromObj( std::istream& in, const PointsLoadSettings& settings = {} );
32
33MRMESH_API Expected<PointCloud> fromDxf( const std::filesystem::path& file, const PointsLoadSettings& settings = {} );
34MRMESH_API Expected<PointCloud> fromDxf( std::istream& in, const PointsLoadSettings& settings = {} );
35
37MRMESH_API Expected<PointCloud> fromAnySupportedFormat( const std::filesystem::path& file, const PointsLoadSettings& settings = {} );
39MRMESH_API Expected<PointCloud> fromAnySupportedFormat( std::istream& in, const std::string& extension, const PointsLoadSettings& settings = {} );
40
42
43} // namespace MR::PointsLoad
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
MRMESH_API Expected< PointCloud > fromDxf(const std::filesystem::path &file, const PointsLoadSettings &settings={})
MRMESH_API Expected< PointCloud > fromPts(const std::filesystem::path &file, const PointsLoadSettings &settings={})
loads from Laser scan plain data format (.pts) file
MRMESH_API Expected< PointCloud > fromObj(const std::filesystem::path &file, const PointsLoadSettings &settings={})
loads from .obj file
MRMESH_API Expected< PointCloud > fromPly(const std::filesystem::path &file, const PointsLoadSettings &settings={})
loads from .ply file
MRMESH_API Expected< PointCloud > fromAnySupportedFormat(const std::filesystem::path &file, const PointsLoadSettings &settings={})
detects the format from file extension and loads points from it
MRMESH_API Expected< PointCloud > fromText(const std::filesystem::path &file, const PointsLoadSettings &settings={})
loads from .csv, .asc, .xyz, .txt file
Definition MRCtm.h:56
tl::expected< T, E > Expected
Definition MRExpected.h:58
Definition MRPointsLoadSettings.h:10