MeshLib C++ Docs
Loading...
Searching...
No Matches
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
42MR_BIND_IGNORE MRMESH_API void telemetryLogSize( const PointCloud& cloud );
43
45
46}
tl::expected< T, E > Expected
Definition MRExpected.h:31
std::array< Vector3f, 3 > MR_BIND_IGNORE
Definition MRMeshBuilderTypes.h:13
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
MR_BIND_IGNORE MRMESH_API void telemetryLogSize(const PointCloud &cloud)
emits telemetry signal with the integer logarithm of the number of points
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
namespace MeshSave
Definition MRCtm.h:59
Definition MRPointCloud.h:17
structure with settings and side output parameters for loading point cloud
Definition MRPointsLoadSettings.h:13