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

Go to the source code of this file.

Typedefs

typedef struct MR_FaceBitSet MR_FaceBitSet
 
typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_expected_void_std_string MR_expected_void_std_string
 

Functions

MRC_API MR_expected_void_std_stringMR_serializeMesh (const MR_Mesh *mesh, const char *path, const char *path_end, const MR_FaceBitSet *selection, const char *const *serializeFormat)
 

Typedef Documentation

◆ MR_expected_void_std_string

◆ MR_FaceBitSet

typedef struct MR_FaceBitSet MR_FaceBitSet

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

Function Documentation

◆ MR_serializeMesh()

MRC_API MR_expected_void_std_string * MR_serializeMesh ( const MR_Mesh * mesh,
const char * path,
const char * path_end,
const MR_FaceBitSet * selection,
const char *const * serializeFormat )

saves mesh with optional selection to mru format; this is very convenient for saving intermediate states during algorithm debugging; ".mrmesh" save mesh format is not space efficient, but guaranties no changes in the topology after loading Generated from function MR::serializeMesh. Parameter mesh can not be null. It is a single object. Parameter path is a UTF-8 encoded filesystem path. Parameter selection defaults to a null pointer in C++. Parameter serializeFormat has a default argument: ".mrmesh", pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.