MeshLib Documentation
Loading...
Searching...
No Matches
MRE57.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
4#ifndef MRIOEXTRAS_NO_E57
5#include "exports.h"
6
8#include <MRMesh/MRColor.h>
9#include <MRMesh/MRExpected.h>
10#include <MRMesh/MRPointCloud.h>
12
13#include <filesystem>
14#include <string>
15
16namespace MR::PointsLoad
17{
18
20{
22 bool combineAllObjects = false;
23
25 bool identityXf = false;
26
29};
30
33{
34 std::string name;
36 AffineXf3f xf;
37 VertColors colors;
38};
39
40MRIOEXTRAS_API Expected<std::vector<NamedCloud>> fromSceneE57File( const std::filesystem::path& file,
41 const E57LoadSettings & settings = {} );
42
44MRIOEXTRAS_API Expected<PointCloud> fromE57( const std::filesystem::path& file,
45 const PointsLoadSettings& settings = {} );
46MRIOEXTRAS_API Expected<PointCloud> fromE57( std::istream& in, const PointsLoadSettings& settings = {} );
47
48MRIOEXTRAS_API Expected<std::vector<std::shared_ptr<Object>>> loadObjectFromE57( const std::filesystem::path& path,
49 std::string* warnings = nullptr,
50 ProgressCallback cb = {} );
51
52} // namespace MR::PointsLoad
53#endif
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
Definition MRCtm.h:56
MRIOEXTRAS_API Expected< PointCloud > fromE57(const std::filesystem::path &file, const PointsLoadSettings &settings={})
loads from .e57 file
MRIOEXTRAS_API Expected< std::vector< NamedCloud > > fromSceneE57File(const std::filesystem::path &file, const E57LoadSettings &settings={})
MRIOEXTRAS_API Expected< std::vector< std::shared_ptr< Object > > > loadObjectFromE57(const std::filesystem::path &path, std::string *warnings=nullptr, ProgressCallback cb={})
tl::expected< T, E > Expected
Definition MRExpected.h:58
Definition MRMesh/MRPointCloud.h:16
Definition MRPointsLoadSettings.h:10
Definition MRE57.h:20
bool combineAllObjects
true => if input file has more than one cloud, they all will be combined in one
Definition MRE57.h:22
ProgressCallback progress
progress report and cancellation
Definition MRE57.h:28
bool identityXf
true => return only identity transforms, applying them to points
Definition MRE57.h:25
loads scene from e57 file
Definition MRE57.h:33
AffineXf3f xf
Definition MRE57.h:36
std::string name
Definition MRE57.h:34
PointCloud cloud
Definition MRE57.h:35
VertColors colors
Definition MRE57.h:37