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
21MRMESH_API Expected<void> toMrLines( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
22MRMESH_API Expected<void> toMrLines( const Polyline3& polyline, std::ostream& out, const SaveSettings & settings = {} );
23
26MRMESH_API Expected<void> toPts( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
27MRMESH_API Expected<void> toPts( const Polyline3& polyline, std::ostream& out, const SaveSettings & settings = {} );
28
31MRMESH_API Expected<void> toDxf( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
32MRMESH_API Expected<void> toDxf( const Polyline3& polyline, std::ostream& out, const SaveSettings & settings = {} );
33
35MRMESH_API Expected<void> toAnySupportedFormat( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
37MRMESH_API Expected<void> toAnySupportedFormat( const Polyline3& polyline, const std::string& extension, std::ostream& out, const SaveSettings & settings = {} );
38
39} // namespace LinesSave
40
41} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
MRMESH_API Expected< void > toAnySupportedFormat(const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
detects the format from file extension and saves polyline in it
MRMESH_API Expected< void > toMrLines(const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
MRMESH_API Expected< void > toPts(const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
MRMESH_API Expected< void > toDxf(const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58
determines how to save points/lines/mesh
Definition MRSaveSettings.h:14