MeshLib C++ Docs
Loading...
Searching...
No Matches
MRObjectLoad.h File Reference
#include "MRMeshFwd.h"
#include "MRIOFilters.h"
#include "MRProgressCallback.h"
#include "MRExpected.h"
#include "MRMeshLoadSettings.h"
#include "MRUniqueTemporaryFolder.h"
#include "MRLoadedObjects.h"
#include <filesystem>

Go to the source code of this file.

Namespaces

namespace  MR
 

Functions

MRMESH_API Expected< LoadedObjectMeshMR::makeObjectMeshFromFile (const std::filesystem::path &file, const ProgressCallback &cb={})
 loads mesh from given file in new object
 
MRMESH_API Expected< LoadedObjectMR::makeObjectFromMeshFile (const std::filesystem::path &file, const ProgressCallback &cb={}, bool returnOnlyMesh=false)
 loads data 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< LoadedObjectsMR::loadObjectFromFile (const std::filesystem::path &filename, const ProgressCallback &callback={})
 load all objects (or any type: mesh, lines, points, voxels or scene) from file
 
MRMESH_API bool MR::isSupportedFileInSubfolders (const std::filesystem::path &folder)
 
MRMESH_API Expected< LoadedObjectMR::loadSceneFromAnySupportedFormat (const std::filesystem::path &path, const ProgressCallback &callback={})
 
MRMESH_API Expected< LoadedObjectMR::deserializeObjectTree (const std::filesystem::path &path, const FolderCallback &postDecompress={}, const ProgressCallback &progressCb={})
 loads objects tree from given scene file (zip/mru)
 
MRMESH_API Expected< LoadedObjectMR::deserializeObjectTreeFromFolder (const std::filesystem::path &folder, const ProgressCallback &progressCb={})
 loads objects tree from given scene folder
 
MRMESH_API IOFilters MR::getAllFilters ()
 returns filters for all supported file formats for all types of objects