MeshLib Documentation
Loading...
Searching...
No Matches
MR::MeshLoad Namespace Reference

Classes

struct  MeshLoader
 
struct  NamedMesh
 
struct  ObjLoadSettings
 

Typedefs

using MeshFileLoader = Expected<MR::Mesh>( * )( const std::filesystem::path&, const MeshLoadSettings& )
 
using MeshStreamLoader = Expected<MR::Mesh>( * )( std::istream&, const MeshLoadSettings& )
 

Functions

MRIOEXTRAS_API Expected< MeshfromCtm (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .ctm file
 
MRIOEXTRAS_API Expected< MeshfromCtm (std::istream &in, const MeshLoadSettings &settings={})
 
MRIOEXTRAS_API Expected< MeshfromStep (const std::filesystem::path &path, const MeshLoadSettings &settings={})
 load mesh data from STEP file using OpenCASCADE
 
MRIOEXTRAS_API Expected< MeshfromStep (std::istream &in, const MeshLoadSettings &settings={})
 
MRIOEXTRAS_API Expected< std::shared_ptr< Object > > fromSceneStepFile (const std::filesystem::path &path, const MeshLoadSettings &settings={})
 load scene from STEP file using OpenCASCADE
 
MRIOEXTRAS_API Expected< std::shared_ptr< Object > > fromSceneStepFile (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromMrmesh (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from internal file format
 
MRMESH_API Expected< MeshfromMrmesh (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromOff (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .off file
 
MRMESH_API Expected< MeshfromOff (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromObj (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .obj file
 
MRMESH_API Expected< MeshfromObj (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromAnyStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from any .stl
 
MRMESH_API Expected< MeshfromAnyStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromBinaryStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from binary .stl
 
MRMESH_API Expected< MeshfromBinaryStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromASCIIStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from ASCII .stl
 
MRMESH_API Expected< MeshfromASCIIStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromPly (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .ply file
 
MRMESH_API Expected< MeshfromPly (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromDxf (const std::filesystem::path &path, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromDxf (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromAnySupportedFormat (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 detects the format from file extension and loads mesh from it
 
MRMESH_API Expected< MeshfromAnySupportedFormat (std::istream &in, const std::string &extension, const MeshLoadSettings &settings={})
 extension in *.ext format
 
MRMESH_API Expected< std::vector< NamedMesh > > fromSceneObjFile (const std::filesystem::path &file, bool combineAllObjects, const ObjLoadSettings &settings={})
 loads meshes from .obj file
 
MRMESH_API Expected< std::vector< NamedMesh > > fromSceneObjFile (std::istream &in, bool combineAllObjects, const std::filesystem::path &dir, const ObjLoadSettings &settings={})
 
MRMESH_API Expected< std::vector< NamedMesh > > fromSceneObjFile (const char *data, size_t size, bool combineAllObjects, const std::filesystem::path &dir, const ObjLoadSettings &settings={})
 
MRMESH_API Expected< std::vector< std::shared_ptr< Object > > > loadObjectFromObj (const std::filesystem::path &results, std::string *warnings=nullptr, ProgressCallback cb={})
 

Function Documentation

◆ fromCtm() [1/2]

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

loads from .ctm file

◆ fromCtm() [2/2]

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

◆ fromSceneStepFile() [1/2]

MRIOEXTRAS_API Expected< std::shared_ptr< Object > > MR::MeshLoad::fromSceneStepFile ( const std::filesystem::path & path,
const MeshLoadSettings & settings = {} )

load scene from STEP file using OpenCASCADE

◆ fromSceneStepFile() [2/2]

MRIOEXTRAS_API Expected< std::shared_ptr< Object > > MR::MeshLoad::fromSceneStepFile ( std::istream & in,
const MeshLoadSettings & settings = {} )

◆ fromStep() [1/2]

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

load mesh data from STEP file using OpenCASCADE

◆ fromStep() [2/2]

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