MeshLib Documentation
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"
7#include <filesystem>
8#include <istream>
9#include <string>
10
11namespace MR
12{
13
14namespace LinesLoad
15{
16
20
22MRMESH_API Expected<Polyline3> fromMrLines( const std::filesystem::path& file, ProgressCallback callback = {} );
24
26MRMESH_API Expected<Polyline3> fromPts( const std::filesystem::path& file, ProgressCallback callback = {} );
27MRMESH_API Expected<Polyline3> fromPts( std::istream& in, ProgressCallback callback = {} );
28
30MRMESH_API Expected<Polyline3> fromAnySupportedFormat( const std::filesystem::path& file, ProgressCallback callback = {} );
32MRMESH_API Expected<Polyline3> fromAnySupportedFormat( std::istream& in, const std::string& extension, ProgressCallback callback = {} );
33
35
36} // namespace LinesLoad
37
38} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRMESH_API Expected< Polyline3 > fromPts(const std::filesystem::path &file, ProgressCallback callback={})
loads from .pts file
MRMESH_API Expected< Polyline3 > fromAnySupportedFormat(const std::filesystem::path &file, ProgressCallback callback={})
detects the format from file extension and loads polyline from it
MRMESH_API Expected< Polyline3 > fromMrLines(const std::filesystem::path &file, ProgressCallback callback={})
loads from .mrlines file
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58