MeshLib C++ Docs
Loading...
Searching...
No Matches
MRLas.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
4#ifndef MRIOEXTRAS_NO_LAS
5#include "exports.h"
6
7#include <MRMesh/MRExpected.h>
10
11#include <filesystem>
12
13namespace MR
14{
17
18
19namespace PointsLoad
20{
21
23MRIOEXTRAS_API Expected<PointCloud> fromLas( const std::filesystem::path& file, const PointsLoadSettings& settings = {} );
24MRIOEXTRAS_API Expected<PointCloud> fromLas( std::istream& in, const PointsLoadSettings& settings = {} );
25
26}
27
28namespace PointsSave
29{
30
33MRIOEXTRAS_API Expected<void> toLas( const PointCloud& points, const std::filesystem::path& file, const SaveSettings& settings = {} );
34MRIOEXTRAS_API Expected<void> toLas( const PointCloud& points, std::ostream& out, const SaveSettings& settings = {} );
35
37MRIOEXTRAS_API Expected<void> toLaz( const PointCloud& points, const std::filesystem::path& file, const SaveSettings& settings = {} );
38MRIOEXTRAS_API Expected<void> toLaz( const PointCloud& points, std::ostream& out, const SaveSettings& settings = {} );
39
40}
41
42}
43#endif
Expected< PointCloud > fromLas(const std::filesystem::path &file, const PointsLoadSettings &settings={})
loads from .las file
tl::expected< T, E > Expected
Definition MRExpected.h:31
Expected< void > toLaz(const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
saves in compressed .laz file, the same contents as in toLas
Expected< void > toLas(const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
Definition MRCtm.h:59
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRPointCloud.h:17
structure with settings and side output parameters for loading point cloud
Definition MRPointsLoadSettings.h:13
determines how to save points/lines/mesh
Definition MRSaveSettings.h:20