MeshLib C Docs
Loading...
Searching...
No Matches
MRObjectLoad.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_expected_MR_LoadedObjectT_MR_ObjectMesh_std_string MR_expected_MR_LoadedObjectT_MR_ObjectMesh_std_string; // Defined in `#include <MRCMisc/expected_MR_LoadedObjectT_MR_ObjectMesh_std_string.h>`.
13typedef struct MR_expected_MR_LoadedObjectT_std_string MR_expected_MR_LoadedObjectT_std_string; // Defined in `#include <MRCMisc/expected_MR_LoadedObjectT_std_string.h>`.
14typedef struct MR_expected_MR_LoadedObjects_std_string MR_expected_MR_LoadedObjects_std_string; // Defined in `#include <MRCMisc/expected_MR_LoadedObjects_std_string.h>`.
15typedef struct MR_expected_MR_ObjectDistanceMap_std_string MR_expected_MR_ObjectDistanceMap_std_string; // Defined in `#include <MRCMisc/expected_MR_ObjectDistanceMap_std_string.h>`.
16typedef struct MR_expected_MR_ObjectGcode_std_string MR_expected_MR_ObjectGcode_std_string; // Defined in `#include <MRCMisc/expected_MR_ObjectGcode_std_string.h>`.
17typedef struct MR_expected_MR_ObjectLines_std_string MR_expected_MR_ObjectLines_std_string; // Defined in `#include <MRCMisc/expected_MR_ObjectLines_std_string.h>`.
18typedef struct MR_expected_MR_ObjectPoints_std_string MR_expected_MR_ObjectPoints_std_string; // Defined in `#include <MRCMisc/expected_MR_ObjectPoints_std_string.h>`.
19typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
20typedef struct MR_std_function_void_from_const_std_filesystem_path_ref MR_std_function_void_from_const_std_filesystem_path_ref; // Defined in `#include <MRCMisc/std_function_void_from_const_std_filesystem_path_ref.h>`.
21typedef struct MR_std_vector_MR_IOFilter MR_std_vector_MR_IOFilter; // Defined in `#include <MRCMisc/std_vector_MR_IOFilter.h>`.
22
23
31
39MRC_API MR_expected_MR_LoadedObjectT_std_string *MR_makeObjectFromMeshFile(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb, const bool *returnOnlyMesh);
40
47
54
61
68
78MRC_API MR_expected_MR_LoadedObjects_std_string *MR_loadObjectFromFile(const char *filename, const char *filename_end, const MR_std_function_bool_from_float *callback);
79
80// check if there are any supported files folder and subfolders
83MRC_API bool MR_isSupportedFileInSubfolders(const char *folder, const char *folder_end);
84
85//tries to load scene from every format listed in SceneFormatFilters
92
110
125
130
131#ifdef __cplusplus
132} // extern "C"
133#endif
struct MR_expected_MR_LoadedObjectT_std_string MR_expected_MR_LoadedObjectT_std_string
Definition MR3mf.h:9
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_expected_MR_LoadedObjects_std_string MR_expected_MR_LoadedObjects_std_string
Definition MRE57.h:17
struct MR_std_vector_MR_IOFilter MR_std_vector_MR_IOFilter
Definition MRIOFilters.h:15
struct MR_expected_MR_ObjectLines_std_string MR_expected_MR_ObjectLines_std_string
Definition MRObjectLoad.h:17
struct MR_expected_MR_ObjectGcode_std_string MR_expected_MR_ObjectGcode_std_string
Definition MRObjectLoad.h:16
struct MR_std_function_void_from_const_std_filesystem_path_ref MR_std_function_void_from_const_std_filesystem_path_ref
Definition MRObjectLoad.h:20
MRC_API MR_expected_MR_LoadedObjectT_MR_ObjectMesh_std_string * MR_makeObjectMeshFromFile(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API MR_expected_MR_LoadedObjectT_std_string * MR_loadSceneFromAnySupportedFormat(const char *path, const char *path_end, const MR_std_function_bool_from_float *callback)
struct MR_expected_MR_ObjectDistanceMap_std_string MR_expected_MR_ObjectDistanceMap_std_string
Definition MRObjectLoad.h:15
MRC_API MR_expected_MR_ObjectDistanceMap_std_string * MR_makeObjectDistanceMapFromFile(const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MRC_API MR_expected_MR_LoadedObjectT_std_string * MR_deserializeObjectTree(const char *path, const char *path_end, const MR_std_function_void_from_const_std_filesystem_path_ref *postDecompress, const MR_std_function_bool_from_float *progressCb)
loads objects tree from given scene file (zip/mru)
MRC_API MR_expected_MR_LoadedObjectT_std_string * MR_deserializeObjectTreeFromFolder(const char *folder, const char *folder_end, const MR_std_function_bool_from_float *progressCb)
loads objects tree from given scene folder
MRC_API MR_expected_MR_LoadedObjects_std_string * MR_loadObjectFromFile(const char *filename, const char *filename_end, const MR_std_function_bool_from_float *callback)
load all objects (or any type: mesh, lines, points, voxels or scene) from file
MRC_API MR_expected_MR_ObjectPoints_std_string * MR_makeObjectPointsFromFile(const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MRC_API MR_std_vector_MR_IOFilter * MR_getAllFilters(void)
MRC_API MR_expected_MR_ObjectLines_std_string * MR_makeObjectLinesFromFile(const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
struct MR_expected_MR_ObjectPoints_std_string MR_expected_MR_ObjectPoints_std_string
Definition MRObjectLoad.h:18
MRC_API MR_expected_MR_LoadedObjectT_std_string * MR_makeObjectFromMeshFile(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb, const bool *returnOnlyMesh)
MRC_API bool MR_isSupportedFileInSubfolders(const char *folder, const char *folder_end)
struct MR_expected_MR_LoadedObjectT_MR_ObjectMesh_std_string MR_expected_MR_LoadedObjectT_MR_ObjectMesh_std_string
Definition MRObjectLoad.h:12
MRC_API MR_expected_MR_ObjectGcode_std_string * MR_makeObjectGcodeFromFile(const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11