MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSvg.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
4#ifndef MRIOEXTRAS_NO_XML
5#include "exports.h"
6
7#include "MRMesh/MRExpected.h"
9
10#include <filesystem>
11
13{
14
16MRIOEXTRAS_API Expected<Polyline3> fromSvg( const std::filesystem::path& file, const LinesLoadSettings& settings = {} );
17MRIOEXTRAS_API Expected<Polyline3> fromSvg( std::istream& in, const LinesLoadSettings& settings = {} );
18MRIOEXTRAS_API Expected<Polyline3> fromSvg( const char* data, size_t size, const LinesLoadSettings& settings = {} );
19
20}
21#endif
ImVec2 size(const ViewportRectangle &rect)
Definition MRViewport.h:32
tl::expected< T, E > Expected
Definition MRExpected.h:31
namespace MeshSave
Definition MRSvg.h:13
MRIOEXTRAS_API Expected< Polyline3 > fromSvg(const std::filesystem::path &file, const LinesLoadSettings &settings={})
loads shapes (polylines, paths, etc.) from file in .SVG format
setting for polyline loading from external format, and locations of optional output data
Definition MRLinesLoadSettings.h:13