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
20struct E57LoadSettings
21{
23 bool combineAllObjects = false;
24
26 bool identityXf = false;
27
29 ProgressCallback progress;
30};
31
33struct NamedCloud
34{
35 std::string name;
36 PointCloud cloud;
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
Definition MRPointsLoadSettings.h:10
Definition MRE57.h:21
new unsafe MR.Std.Function_BoolFuncFromFloat progress
new unsafe ref bool combineAllObjects
new unsafe ref bool identityXf
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={})