MeshLib C++ Docs
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> toPly( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
36MRMESH_API Expected<void> toPly( const Polyline3& polyline, std::ostream & out, const SaveSettings & settings = {} );
37
39MRMESH_API Expected<void> toAnySupportedFormat( const Polyline3& polyline, const std::filesystem::path& file, const SaveSettings & settings = {} );
41MRMESH_API Expected<void> toAnySupportedFormat( const Polyline3& polyline, const std::string& extension, std::ostream& out, const SaveSettings & settings = {} );
42
43} // namespace LinesSave
44
45} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
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 > toPly(const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
saves in .ply file
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:25
determines how to save points/lines/mesh
Definition MRMesh/MRSaveSettings.h:14