MeshLib C++ Docs
Loading...
Searching...
No Matches
MRLinesLoad.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRIOFilters.h"
6#include "MRExpected.h"
8#include <filesystem>
9#include <istream>
10#include <string>
11
12namespace MR
13{
14
15namespace LinesLoad
16{
17
21
23MRMESH_API Expected<Polyline3> fromMrLines( const std::filesystem::path& file, const LinesLoadSettings& settings = {} );
24
27MRMESH_API Expected<Polyline3> fromMrLines( std::istream& in, const LinesLoadSettings& settings = {} );
28
30MRMESH_API Expected<Polyline3> fromPts( const std::filesystem::path& file, const LinesLoadSettings& settings = {} );
31
33MRMESH_API Expected<Polyline3> fromPts( std::istream& in, const LinesLoadSettings& settings = {} );
34
36MRMESH_API Expected<Polyline3> fromPly( const std::filesystem::path& file, const LinesLoadSettings& settings = {} );
37
40MRMESH_API Expected<Polyline3> fromPly( std::istream& in, const LinesLoadSettings& settings = {} );
41
43MRMESH_API Expected<Polyline3> fromAnySupportedFormat( const std::filesystem::path& file, const LinesLoadSettings& settings = {} );
44
47MRMESH_API Expected<Polyline3> fromAnySupportedFormat( std::istream& in, const std::string& extension, const LinesLoadSettings& settings = {} );
48
50
51} // namespace LinesLoad
52
53} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
MRMESH_API Expected< Polyline3 > fromMrLines(const std::filesystem::path &file, const LinesLoadSettings &settings={})
loads polyline from file in internal MeshLib format
MRMESH_API Expected< Polyline3 > fromPly(const std::filesystem::path &file, const LinesLoadSettings &settings={})
loads polyline from file in .PLY format
MRMESH_API Expected< Polyline3 > fromAnySupportedFormat(const std::filesystem::path &file, const LinesLoadSettings &settings={})
loads polyline from file in the format detected from file extension
MRMESH_API Expected< Polyline3 > fromPts(const std::filesystem::path &file, const LinesLoadSettings &settings={})
loads polyline from file in .PTS format
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:25
setting for polyline loading from external format, and locations of optional output data
Definition MRLinesLoadSettings.h:10