MeshLib
 
Loading...
Searching...
No Matches
MRObjectLoad.h File Reference
#include "MRMeshFwd.h"
#include "MRProgressCallback.h"
#include "MRExpected.h"
#include "MRMeshLoadSettings.h"
#include <filesystem>

Go to the source code of this file.

Classes

struct  MR::MeshLoadInfo
 information about loading process and mesh construction from primitives More...
 

Namespaces

namespace  MR
 

Functions

MRMESH_API Expected< ObjectMeshMR::makeObjectMeshFromFile (const std::filesystem::path &file, const MeshLoadInfo &info={})
 loads mesh from given file in new object
 
MRMESH_API Expected< std::shared_ptr< Object > > MR::makeObjectFromMeshFile (const std::filesystem::path &file, const MeshLoadInfo &info={}, bool returnOnlyMesh=false)
 loads mesh from given file and makes either ObjectMesh or ObjectPoints (if the file has points but not faces)
 
MRMESH_API Expected< ObjectLinesMR::makeObjectLinesFromFile (const std::filesystem::path &file, ProgressCallback callback={})
 loads lines from given file in new object
 
MRMESH_API Expected< ObjectPointsMR::makeObjectPointsFromFile (const std::filesystem::path &file, ProgressCallback callback={})
 loads points from given file in new object
 
MRMESH_API Expected< ObjectDistanceMapMR::makeObjectDistanceMapFromFile (const std::filesystem::path &file, ProgressCallback callback={})
 loads distance map from given file in new object
 
MRMESH_API Expected< ObjectGcodeMR::makeObjectGcodeFromFile (const std::filesystem::path &file, ProgressCallback callback={})
 loads gcode from given file in new object
 
MRMESH_API Expected< std::vector< std::shared_ptr< ObjectVoxels > > > MR::makeObjectVoxelsFromFile (const std::filesystem::path &file, ProgressCallback callback={})
 loads voxels from given file in new object
 
MRMESH_API Expected< std::vector< std::shared_ptr< Object > > > MR::loadObjectFromFile (const std::filesystem::path &filename, std::string *loadWarn=nullptr, ProgressCallback callback={})
 load object (mesh, lines, points, voxels or scene) from file
 
MRMESH_API bool MR::isSupportedFileInSubfolders (const std::filesystem::path &folder)
 
MRMESH_API Expected< ObjectMR::makeObjectTreeFromFolder (const std::filesystem::path &folder, std::string *loadWarn=nullptr, ProgressCallback callback={})
 loads meshes from given folder in new container object
 
MRMESH_API Expected< std::shared_ptr< Object > > MR::loadSceneFromAnySupportedFormat (const std::filesystem::path &path, std::string *loadWarn=nullptr, ProgressCallback callback={})