MeshLib
 
Loading...
Searching...
No Matches
Mesh Load

Functions

MRMESH_API Expected< MeshMR::MeshLoad::fromMrmesh (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from internal file 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 from .off file
 
MRMESH_API Expected< MeshMR::MeshLoad::fromOff (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromObj (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .obj file
 
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 from any .stl
 
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 from binary .stl
 
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 from ASCII .stl
 
MRMESH_API Expected< MeshMR::MeshLoad::fromASCIIStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromPly (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .ply file
 
MRMESH_API Expected< MeshMR::MeshLoad::fromPly (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromCtm (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .ctm file
 
MRMESH_API Expected< MeshMR::MeshLoad::fromCtm (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromDxf (const std::filesystem::path &path, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromDxf (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshMR::MeshLoad::fromAnySupportedFormat (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 detects the format from file extension and loads mesh from it
 
MRMESH_API Expected< MeshMR::MeshLoad::fromAnySupportedFormat (std::istream &in, const std::string &extension, const MeshLoadSettings &settings={})
 extension in *.ext format
 

Detailed Description

Function Documentation

◆ fromAnyStl() [1/2]

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

loads from any .stl

◆ fromAnyStl() [2/2]

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

◆ fromAnySupportedFormat() [1/2]

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

detects the format from file extension and loads mesh from it

◆ fromAnySupportedFormat() [2/2]

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

extension in *.ext format

◆ fromASCIIStl() [1/2]

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

loads from ASCII .stl

◆ fromASCIIStl() [2/2]

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

◆ fromBinaryStl() [1/2]

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

loads from binary .stl

◆ fromBinaryStl() [2/2]

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

◆ fromCtm() [1/2]

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

loads from .ctm file

◆ fromCtm() [2/2]

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

◆ fromDxf() [1/2]

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

◆ fromDxf() [2/2]

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

◆ fromMrmesh() [1/2]

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

loads from internal file format

◆ fromMrmesh() [2/2]

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

◆ fromObj() [1/2]

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

loads from .obj file

◆ fromObj() [2/2]

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

loads from .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 from .off file

◆ fromOff() [2/2]

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

◆ fromPly() [1/2]

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

loads from .ply file

◆ fromPly() [2/2]

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