MeshLib Documentation
Loading...
Searching...
No Matches
MRGcodeLoad.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#include "MRIOFilters.h"
5#include "MRExpected.h"
6#include <filesystem>
7#include <istream>
8#include <string>
9
10namespace MR
11{
12
13namespace GcodeLoad
14{
15
19
20MRMESH_API extern const IOFilters Filters;
21
23MRMESH_API Expected<GcodeSource> fromGcode( const std::filesystem::path& file, ProgressCallback callback = {} );
24
26
27
29MRMESH_API Expected<GcodeSource> fromAnySupportedFormat( const std::filesystem::path& file, ProgressCallback callback = {} );
31MRMESH_API Expected<GcodeSource> fromAnySupportedFormat( std::istream& in, const std::string& extension, ProgressCallback callback = {} );
32
34
35}
36
37}
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRMESH_API const IOFilters Filters
MRMESH_API Expected< GcodeSource > fromGcode(const std::filesystem::path &file, ProgressCallback callback={})
loads from *.gcode file (or any text file)
MRMESH_API Expected< GcodeSource > fromAnySupportedFormat(const std::filesystem::path &file, ProgressCallback callback={})
detects the format from file extension and loads mesh from it
std::vector< IOFilter > IOFilters
Definition MRIOFilters.h:32
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58