MeshLib
 
Loading...
Searching...
No Matches
MRLinesSave.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRExpected.h"
4#include "MRIOFilters.h"
5#include "MRSaveSettings.h"
6#include <filesystem>
7#include <ostream>
8
9namespace MR
10{
11
12namespace LinesSave
13{
14
18
19MRMESH_API extern const IOFilters Filters;
20
23MRMESH_API VoidOrErrStr toMrLines( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
24MRMESH_API VoidOrErrStr toMrLines( const Polyline3& polyline, std::ostream& out, const SaveSettings & settings = {} );
25
28MRMESH_API VoidOrErrStr toPts( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
29MRMESH_API VoidOrErrStr toPts( const Polyline3& polyline, std::ostream& out, const SaveSettings & settings = {} );
30
33MRMESH_API VoidOrErrStr toDxf( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
34MRMESH_API VoidOrErrStr toDxf( const Polyline3& polyline, std::ostream& out, const SaveSettings & settings = {} );
35
37MRMESH_API VoidOrErrStr toAnySupportedFormat( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
39MRMESH_API VoidOrErrStr toAnySupportedFormat( const Polyline3& polyline, std::ostream& out, const std::string& extension, const SaveSettings & settings = {} );
40
41} // namespace LinesSave
42
43} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::vector< IOFilter > IOFilters
Definition MRIOFilters.h:23
MRMESH_API VoidOrErrStr toDxf(const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
MRMESH_API VoidOrErrStr toMrLines(const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
MRMESH_API const IOFilters Filters
MRMESH_API VoidOrErrStr toPts(const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
MRMESH_API VoidOrErrStr toAnySupportedFormat(const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
detects the format from file extension and saves polyline in it
Definition MRCameraOrientationPlugin.h:7
Expected< void > VoidOrErrStr
return type for a void function that can produce an error string
Definition MRExpected.h:60
determines how to save points/lines/mesh
Definition MRSaveSettings.h:14