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
 only for bindings generation

Functions

Expected< LoadedObjectMeshMR::makeObjectMeshFromFile (const std::filesystem::path &file, const ProgressCallback &cb={})
 loads mesh from given file in new object
Expected< LoadedObjectMR::makeObjectFromMeshFile (const std::filesystem::path &file, const ProgressCallback &cb={}, bool returnOnlyMesh=false)
 loads data from given file and makes either ObjectMesh, ObjectLines or ObjectPoints (if the file has points or edges but not faces)
Expected< ObjectLinesMR::makeObjectLinesFromFile (const std::filesystem::path &file, ProgressCallback callback={})
 loads lines from given file in new object
Expected< ObjectPointsMR::makeObjectPointsFromFile (const std::filesystem::path &file, ProgressCallback callback={})
 loads points from given file in new object
Expected< ObjectDistanceMapMR::makeObjectDistanceMapFromFile (const std::filesystem::path &file, ProgressCallback callback={})
 loads distance map from given file in new object
Expected< ObjectGcodeMR::makeObjectGcodeFromFile (const std::filesystem::path &file, ProgressCallback callback={})
 loads gcode from given file in new object
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
bool MR::isSupportedFileInSubfolders (const std::filesystem::path &folder)
 checks if there are any supported files folder and subfolders
Expected< LoadedObjectMR::loadSceneFromAnySupportedFormat (const std::filesystem::path &path, const ProgressCallback &callback={})
 tries to load scene from every format listed in SceneFormatFilters
LoadedObject MR::makeObjectMesh (std::string objName, LoadedMeshData data)
 constructs new ObjectMesh from the given data
Expected< LoadedObjectMR::deserializeObjectTree (const std::filesystem::path &path, const FolderCallback &postDecompress={}, const ProgressCallback &progressCb={})
 loads objects tree from given scene file (zip/mru)
Expected< LoadedObjectMR::deserializeObjectTreeFromFolder (const std::filesystem::path &folder, const ProgressCallback &progressCb={})
 loads objects tree from given scene folder
IOFilters MR::getAllFilters ()
 returns filters for all supported file formats for all types of objects