MeshLib
 
Loading...
Searching...
No Matches
MRMeshLoad.h File Reference
#include "MRMeshFwd.h"
#include "MRIOFilters.h"
#include "MRId.h"
#include "MRProgressCallback.h"
#include "MRExpected.h"
#include "MRMeshLoadSettings.h"
#include <filesystem>
#include <istream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  MR
 
namespace  MR::MeshLoad
 

Functions

MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromMrmesh (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from internal file format
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromMrmesh (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromOff (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .off file
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromOff (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromObj (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .obj file
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromObj (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromAnyStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from any .stl
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromAnyStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromBinaryStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from binary .stl
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromBinaryStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromASCIIStl (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from ASCII .stl
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromASCIIStl (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromPly (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .ply file
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromPly (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromCtm (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .ctm file
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromCtm (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::from3mf (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 loads from .3mf file (overload that takes path also reads "*.model" files)
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::from3mf (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromDxf (const std::filesystem::path &path, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromDxf (std::istream &in, const MeshLoadSettings &settings={})
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromAnySupportedFormat (const std::filesystem::path &file, const MeshLoadSettings &settings={})
 detects the format from file extension and loads mesh from it
 
MRMESH_API Expected< Mesh, std::string > MR::MeshLoad::fromAnySupportedFormat (std::istream &in, const std::string &extension, const MeshLoadSettings &settings={})
 extension in *.ext format