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

Classes

class  MeshLoaderAdder
 
struct  NamedMesh
 
struct  NamedMeshLoader
 
struct  ObjLoadSettings
 

Typedefs

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

Functions

MRMESH_API MeshLoader getMeshLoader (IOFilter filter)
 Finds expected loader from registry.
 
MRMESH_API MeshStreamLoader getMeshStreamLoader (IOFilter filter)
 Finds expected loader from registry.
 
MRMESH_API IOFilters getFilters ()
 Gets all registered filters.
 
MRMESH_API void setMeshLoader (IOFilter filter, MeshLoader loader)
 Add or override a loader in the registry.
 
MRMESH_API void setMeshStreamLoader (IOFilter filter, MeshStreamLoader streamLoader)
 Add or override a loader in the registry.
 
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< MeshfromCtm (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .ctm file
 
MRMESH_API Expected< MeshfromCtm (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< MeshfromStep (const std::filesystem::path &path, const MeshLoadSettings &settings={})
 load mesh data from STEP file using OpenCASCADE
 
MRMESH_API Expected< MeshfromStep (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< std::shared_ptr< Object > > fromSceneStepFile (const std::filesystem::path &path, const MeshLoadSettings &settings={})
 load scene from STEP file using OpenCASCADE
 
MRMESH_API Expected< std::shared_ptr< Object > > fromSceneStepFile (std::istream &in, const MeshLoadSettings &settings={})
 

Function Documentation

◆ fromSceneStepFile() [1/2]

MRMESH_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]

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

◆ fromStep() [1/2]

MRMESH_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]

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