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

Functions

MRMESH_API Expected< MeshMR::MeshLoad::fromMrmesh (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in internal MeshLib format
 
MRMESH_API Expected< MeshMR::MeshLoad::fromMrmesh (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromOff (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in .OFF format
 
MRMESH_API Expected< MeshMR::MeshLoad::fromOff (std::istream &in, const MeshLoadSettings &settings={})
 loads mesh from stream in .OFF format
 
MRMESH_API Expected< MeshMR::MeshLoad::fromObj (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in .OBJ format
 
MRMESH_API Expected< MeshMR::MeshLoad::fromObj (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromAnyStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in any .STL format: both binary and ASCII
 
MRMESH_API Expected< MeshMR::MeshLoad::fromAnyStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromBinaryStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in binary .STL format
 
MRMESH_API Expected< MeshMR::MeshLoad::fromBinaryStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromASCIIStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in textual .STL format
 
MRMESH_API Expected< MeshMR::MeshLoad::fromASCIIStl (std::istream &in, const MeshLoadSettings &settings={})
 loads mesh from stream in textual .STL format
 
MRMESH_API Expected< MeshMR::MeshLoad::fromPly (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in .PLY format;
 
MRMESH_API Expected< MeshMR::MeshLoad::fromPly (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromDxf (const std::filesystem::path &path, const MeshLoadSettings &settings={})
 loads mesh from file in .DXF format;
 
MRMESH_API Expected< MeshMR::MeshLoad::fromDxf (std::istream &in, const MeshLoadSettings &settings={})
 loads mesh from stream in .DXF format;
 
MRMESH_API Expected< MeshMR::MeshLoad::fromAnySupportedFormat (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in the format detected from file extension
 
MRMESH_API Expected< MeshMR::MeshLoad::fromAnySupportedFormat (std::istream &in, const std::string &extension, const MeshLoadSettings &settings={})
 

Detailed Description

Function Documentation

◆ fromAnyStl() [1/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromAnyStl ( const std::filesystem::path & file,
const MeshLoadSettings & settings = {} )

loads mesh from file in any .STL format: both binary and ASCII

◆ fromAnyStl() [2/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromAnyStl ( std::istream & in,
const MeshLoadSettings & settings = {} )

loads mesh from stream in any .STL format: both binary and ASCII; important on Windows: in stream must be open in binary mode

◆ fromAnySupportedFormat() [1/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromAnySupportedFormat ( const std::filesystem::path & file,
const MeshLoadSettings & settings = {} )

loads mesh from file in the format detected from file extension

◆ fromAnySupportedFormat() [2/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromAnySupportedFormat ( std::istream & in,
const std::string & extension,
const MeshLoadSettings & settings = {} )

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

◆ fromASCIIStl() [1/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromASCIIStl ( const std::filesystem::path & file,
const MeshLoadSettings & settings = {} )

loads mesh from file in textual .STL format

◆ fromASCIIStl() [2/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromASCIIStl ( std::istream & in,
const MeshLoadSettings & settings = {} )

loads mesh from stream in textual .STL format

◆ fromBinaryStl() [1/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromBinaryStl ( const std::filesystem::path & file,
const MeshLoadSettings & settings = {} )

loads mesh from file in binary .STL format

◆ fromBinaryStl() [2/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromBinaryStl ( std::istream & in,
const MeshLoadSettings & settings = {} )

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

◆ fromDxf() [1/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromDxf ( const std::filesystem::path & path,
const MeshLoadSettings & settings = {} )

loads mesh from file in .DXF format;

◆ fromDxf() [2/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromDxf ( std::istream & in,
const MeshLoadSettings & settings = {} )

loads mesh from stream in .DXF format;

◆ fromMrmesh() [1/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromMrmesh ( const std::filesystem::path & file,
const MeshLoadSettings & settings = {} )

loads mesh from file in internal MeshLib format

◆ fromMrmesh() [2/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromMrmesh ( std::istream & in,
const MeshLoadSettings & settings = {} )

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

◆ fromObj() [1/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromObj ( const std::filesystem::path & file,
const MeshLoadSettings & settings = {} )

loads mesh from file in .OBJ format

◆ fromObj() [2/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromObj ( std::istream & in,
const MeshLoadSettings & settings = {} )

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

◆ fromOff() [1/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromOff ( const std::filesystem::path & file,
const MeshLoadSettings & settings = {} )

loads mesh from file in .OFF format

◆ fromOff() [2/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromOff ( std::istream & in,
const MeshLoadSettings & settings = {} )

loads mesh from stream in .OFF format

◆ fromPly() [1/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromPly ( const std::filesystem::path & file,
const MeshLoadSettings & settings = {} )

loads mesh from file in .PLY format;

◆ fromPly() [2/2]

MRMESH_API Expected< Mesh > MR::MeshLoad::fromPly ( std::istream & in,
const MeshLoadSettings & settings = {} )

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