MeshLib C++ Docs
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 mesh from file in internal MeshLib format
 
MRMESH_API Expected< MeshfromMrmesh (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromOff (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in .OFF format
 
MRMESH_API Expected< MeshfromOff (std::istream &in, const MeshLoadSettings &settings={})
 loads mesh from stream in .OFF format
 
MRMESH_API Expected< MeshfromObj (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in .OBJ format
 
MRMESH_API Expected< MeshfromObj (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromAnyStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in any .STL format: both binary and ASCII
 
MRMESH_API Expected< MeshfromAnyStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromBinaryStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in binary .STL format
 
MRMESH_API Expected< MeshfromBinaryStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromASCIIStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in textual .STL format
 
MRMESH_API Expected< MeshfromASCIIStl (std::istream &in, const MeshLoadSettings &settings={})
 loads mesh from stream in textual .STL format
 
MRMESH_API Expected< MeshfromPly (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in .PLY format;
 
MRMESH_API Expected< MeshfromPly (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< MeshfromDxf (const std::filesystem::path &path, const MeshLoadSettings &settings={})
 loads mesh from file in .DXF format;
 
MRMESH_API Expected< MeshfromDxf (std::istream &in, const MeshLoadSettings &settings={})
 loads mesh from stream in .DXF format;
 
MRMESH_API Expected< MeshfromAnySupportedFormat (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads mesh from file in the format detected from file extension
 
MRMESH_API Expected< MeshfromAnySupportedFormat (std::istream &in, const std::string &extension, const MeshLoadSettings &settings={})
 
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< LoadedObjectsloadObjectFromObj (const std::filesystem::path &file, const ProgressCallback &cb={})
 reads all objects from .OBJ file
 

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 = {} )