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_LoadedMeshData MR_LoadedMeshData; // Defined in `#include <MRCMesh/MRLoadedMeshData.h>`.
13typedef struct MR_LoadedObjectT MR_LoadedObjectT; // Defined in `#include <MRCMesh/MRLoadedObjects.h>`.
14typedef 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>`.
15typedef struct MR_expected_MR_LoadedObjectT_std_string MR_expected_MR_LoadedObjectT_std_string; // Defined in `#include <MRCMisc/expected_MR_LoadedObjectT_std_string.h>`.
16typedef struct MR_expected_MR_LoadedObjects_std_string MR_expected_MR_LoadedObjects_std_string; // Defined in `#include <MRCMisc/expected_MR_LoadedObjects_std_string.h>`.
17typedef struct MR_expected_MR_ObjectDistanceMap_std_string MR_expected_MR_ObjectDistanceMap_std_string; // Defined in `#include <MRCMisc/expected_MR_ObjectDistanceMap_std_string.h>`.
18typedef struct MR_expected_MR_ObjectGcode_std_string MR_expected_MR_ObjectGcode_std_string; // Defined in `#include <MRCMisc/expected_MR_ObjectGcode_std_string.h>`.
19typedef struct MR_expected_MR_ObjectLines_std_string MR_expected_MR_ObjectLines_std_string; // Defined in `#include <MRCMisc/expected_MR_ObjectLines_std_string.h>`.
20typedef struct MR_expected_MR_ObjectPoints_std_string MR_expected_MR_ObjectPoints_std_string; // Defined in `#include <MRCMisc/expected_MR_ObjectPoints_std_string.h>`.
21typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
22typedef 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>`.
23typedef struct MR_std_vector_MR_IOFilter MR_std_vector_MR_IOFilter; // Defined in `#include <MRCMisc/std_vector_MR_IOFilter.h>`.
24
25
33
41MRC_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);
42
49
56
63
70
80MRC_API MR_expected_MR_LoadedObjects_std_string *MR_loadObjectFromFile(const char *filename, const char *filename_end, const MR_std_function_bool_from_float *callback);
81
85MRC_API bool MR_isSupportedFileInSubfolders(const char *folder, const char *folder_end);
86
94
100MRC_API MR_LoadedObjectT *MR_makeObjectMesh(const char *objName, const char *objName_end, MR_PassBy data_pass_by, MR_LoadedMeshData *data);
101
119
134
139
140#ifdef __cplusplus
141} // extern "C"
142#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_LoadedMeshData MR_LoadedMeshData
Definition MRLoadedMeshData.h:30
struct MR_LoadedObjectT MR_LoadedObjectT
Definition MRLoadedObjects.h:26
struct MR_expected_MR_ObjectLines_std_string MR_expected_MR_ObjectLines_std_string
Definition MRObjectLoad.h:19
struct MR_expected_MR_ObjectGcode_std_string MR_expected_MR_ObjectGcode_std_string
Definition MRObjectLoad.h:18
struct MR_std_function_void_from_const_std_filesystem_path_ref MR_std_function_void_from_const_std_filesystem_path_ref
Definition MRObjectLoad.h:22
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:17
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:20
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 MR_LoadedObjectT * MR_makeObjectMesh(const char *objName, const char *objName_end, MR_PassBy data_pass_by, MR_LoadedMeshData *data)
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:14
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:23
#define MRC_API
Definition include/MRCMisc/exports.h:11