MeshLib C++ Docs
Loading...
Searching...
No Matches
Lines Load

Functions

MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromMrLines (const std::filesystem::path &file, const LinesLoadSettings &settings={})
 loads polyline from file in internal MeshLib format
 
MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromMrLines (std::istream &in, const LinesLoadSettings &settings={})
 
MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromPts (const std::filesystem::path &file, const LinesLoadSettings &settings={})
 loads polyline from file in .PTS format
 
MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromPts (std::istream &in, const LinesLoadSettings &settings={})
 loads polyline from stream in .PTS format
 
MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromPly (const std::filesystem::path &file, const LinesLoadSettings &settings={})
 loads polyline from file in .PLY format
 
MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromPly (std::istream &in, const LinesLoadSettings &settings={})
 
MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromAnySupportedFormat (const std::filesystem::path &file, const LinesLoadSettings &settings={})
 loads polyline from file in the format detected from file extension
 
MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromAnySupportedFormat (std::istream &in, const std::string &extension, const LinesLoadSettings &settings={})
 

Detailed Description

Function Documentation

◆ fromAnySupportedFormat() [1/2]

MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromAnySupportedFormat ( const std::filesystem::path & file,
const LinesLoadSettings & settings = {} )

loads polyline from file in the format detected from file extension

◆ fromAnySupportedFormat() [2/2]

MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromAnySupportedFormat ( std::istream & in,
const std::string & extension,
const LinesLoadSettings & settings = {} )

loads polyline from stream in the format detected from given extension-string (*.ext); important on Windows: in stream must be open in binary mode

◆ fromMrLines() [1/2]

MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromMrLines ( const std::filesystem::path & file,
const LinesLoadSettings & settings = {} )

loads polyline from file in internal MeshLib format

◆ fromMrLines() [2/2]

MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromMrLines ( std::istream & in,
const LinesLoadSettings & settings = {} )

loads polyline from stream in internal MeshLib format; important on Windows: in stream must be open in binary mode

◆ fromPly() [1/2]

MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromPly ( const std::filesystem::path & file,
const LinesLoadSettings & settings = {} )

loads polyline from file in .PLY format

◆ fromPly() [2/2]

MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromPly ( std::istream & in,
const LinesLoadSettings & settings = {} )

loads polyline from stream in .PLY format; important on Windows: in stream must be open in binary mode

◆ fromPts() [1/2]

MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromPts ( const std::filesystem::path & file,
const LinesLoadSettings & settings = {} )

loads polyline from file in .PTS format

◆ fromPts() [2/2]

MRMESH_API Expected< Polyline3 > MR::LinesLoad::fromPts ( std::istream & in,
const LinesLoadSettings & settings = {} )

loads polyline from stream in .PTS format