MeshLib C Docs
Loading...
Searching...
No Matches
MR3mf.h File Reference
#include <MRCMisc/exports.h>

Go to the source code of this file.

Typedefs

typedef struct MR_expected_MR_LoadedObjectT_std_string MR_expected_MR_LoadedObjectT_std_string
typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float

Functions

MRC_API MR_expected_MR_LoadedObjectT_std_stringMR_deserializeObjectTreeFrom3mf (const char *file, const char *file_end, const MR_std_function_bool_from_float *callback)
MRC_API MR_expected_MR_LoadedObjectT_std_stringMR_deserializeObjectTreeFromModel (const char *file, const char *file_end, const MR_std_function_bool_from_float *callback)

Typedef Documentation

◆ MR_expected_MR_LoadedObjectT_std_string

Stores either a MR::LoadedObjectT<> that represents success or a std::string that represents an error. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_std_function_bool_from_float

Stores a functor of type: bool(float). Possibly stateful. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

Function Documentation

◆ MR_deserializeObjectTreeFrom3mf()

MRC_API MR_expected_MR_LoadedObjectT_std_string * MR_deserializeObjectTreeFrom3mf ( const char * file,
const char * file_end,
const MR_std_function_bool_from_float * callback )

Generated from function MR::deserializeObjectTreeFrom3mf. Parameter file is a UTF-8 encoded filesystem path. Parameter callback is a single object. Parameter callback has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_LoadedObjectT_std_string_Destroy() to free it when you're done using it.

◆ MR_deserializeObjectTreeFromModel()

MRC_API MR_expected_MR_LoadedObjectT_std_string * MR_deserializeObjectTreeFromModel ( const char * file,
const char * file_end,
const MR_std_function_bool_from_float * callback )

Generated from function MR::deserializeObjectTreeFromModel. Parameter file is a UTF-8 encoded filesystem path. Parameter callback is a single object. Parameter callback has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_LoadedObjectT_std_string_Destroy() to free it when you're done using it.