MeshLib C++ Docs
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>
13
14#include <filesystem>
15#include <string>
16
17namespace MR::PointsLoad
18{
19
21{
23 bool combineAllObjects = false;
24
26 bool identityXf = false;
27
30};
31
34{
35 std::string name;
37 AffineXf3f xf;
38 VertColors colors;
39};
40
41MRIOEXTRAS_API Expected<std::vector<NamedCloud>> fromSceneE57File( const std::filesystem::path& file,
42 const E57LoadSettings & settings = {} );
43
45MRIOEXTRAS_API Expected<PointCloud> fromE57( const std::filesystem::path& file,
46 const PointsLoadSettings& settings = {} );
47MRIOEXTRAS_API Expected<PointCloud> fromE57( std::istream& in, const PointsLoadSettings& settings = {} );
48
49MRIOEXTRAS_API Expected<LoadedObjects> loadObjectFromE57( const std::filesystem::path& path, const ProgressCallback& cb = {} );
50
51} // namespace MR::PointsLoad
52#endif
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:600
Definition MRCtm.h:56
MRIOEXTRAS_API Expected< LoadedObjects > loadObjectFromE57(const std::filesystem::path &path, const ProgressCallback &cb={})
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={})
tl::expected< T, E > Expected
Definition MRExpected.h:58
Definition MRMesh/MRPointCloud.h:16
Definition MRMesh/MRPointsLoadSettings.h:10
Definition MRE57.h:21
bool combineAllObjects
true => if input file has more than one cloud, they all will be combined in one
Definition MRE57.h:23
ProgressCallback progress
progress report and cancellation
Definition MRE57.h:29
bool identityXf
true => return only identity transforms, applying them to points
Definition MRE57.h:26
loads scene from e57 file
Definition MRE57.h:34
AffineXf3f xf
Definition MRE57.h:37
std::string name
Definition MRE57.h:35
PointCloud cloud
Definition MRE57.h:36
VertColors colors
Definition MRE57.h:38