MeshLib Documentation
Loading...
Searching...
No Matches
Lines Save

Functions

MRMESH_API Expected< void > MR::LinesSave::toMrLines (const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::LinesSave::toMrLines (const Polyline3 &polyline, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::LinesSave::toPts (const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::LinesSave::toPts (const Polyline3 &polyline, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::LinesSave::toDxf (const Polyline3 &polyline, const std::filesystem::path &file, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::LinesSave::toDxf (const Polyline3 &polyline, std::ostream &out, const SaveSettings &settings={})
 
MRMESH_API Expected< void > MR::LinesSave::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 > MR::LinesSave::toAnySupportedFormat (const Polyline3 &polyline, const std::string &extension, std::ostream &out, const SaveSettings &settings={})
 extension in *.ext format
 

Detailed Description

Function Documentation

◆ toAnySupportedFormat() [1/2]

MRMESH_API Expected< void > MR::LinesSave::toAnySupportedFormat ( const Polyline3 & polyline,
const std::filesystem::path & file,
const SaveSettings & settings = {} )

detects the format from file extension and saves polyline in it

◆ toAnySupportedFormat() [2/2]

MRMESH_API Expected< void > MR::LinesSave::toAnySupportedFormat ( const Polyline3 & polyline,
const std::string & extension,
std::ostream & out,
const SaveSettings & settings = {} )

extension in *.ext format

◆ toDxf() [1/2]

MRMESH_API Expected< void > MR::LinesSave::toDxf ( const Polyline3 & polyline,
const std::filesystem::path & file,
const SaveSettings & settings = {} )

saves in .dxf file; SaveSettings::saveValidOnly = false is ignored

◆ toDxf() [2/2]

MRMESH_API Expected< void > MR::LinesSave::toDxf ( const Polyline3 & polyline,
std::ostream & out,
const SaveSettings & settings = {} )

◆ toMrLines() [1/2]

MRMESH_API Expected< void > MR::LinesSave::toMrLines ( const Polyline3 & polyline,
const std::filesystem::path & file,
const SaveSettings & settings = {} )

saves in .mrlines file; SaveSettings::saveValidOnly = true is ignored

◆ toMrLines() [2/2]

MRMESH_API Expected< void > MR::LinesSave::toMrLines ( const Polyline3 & polyline,
std::ostream & out,
const SaveSettings & settings = {} )

◆ toPts() [1/2]

MRMESH_API Expected< void > MR::LinesSave::toPts ( const Polyline3 & polyline,
const std::filesystem::path & file,
const SaveSettings & settings = {} )

saves in .pts file; SaveSettings::saveValidOnly = false is ignored

◆ toPts() [2/2]

MRMESH_API Expected< void > MR::LinesSave::toPts ( const Polyline3 & polyline,
std::ostream & out,
const SaveSettings & settings = {} )