Geogram  Version 1.9.0
A programming library of geometric algorithms
mesh_io.h File Reference

Functions to load and save meshes. More...

#include <geogram/basic/common.h>
#include <geogram/basic/numeric.h>
#include <geogram/basic/factory.h>
#include <geogram/basic/attributes.h>
#include <geogram/mesh/mesh.h>
#include <string>

Go to the source code of this file.

Classes

class  GEO::MeshIOFlags
 Mesh load/save flags. More...
 
class  GEO::MeshIOHandler
 Mesh loader and saver. More...
 

Namespaces

 GEO
 Global Vorpaline namespace.
 

Macros

#define geo_register_MeshIOHandler_creator(type, name)    geo_register_creator(GEO::MeshIOHandlerFactory, type, name)
 Helper macro to register a MeshIOHandler implementation. More...
 

Enumerations

enum  GEO::MeshAttributesFlags {
  MESH_NO_ATTRIBUTES = 0 , MESH_VERTEX_REGION = 1 , MESH_VERTEX_TEX_COORD = 2 , MESH_VERTEX_COLOR = 4 ,
  MESH_FACET_REGION = 8 , MESH_CELL_REGION = 16 , MESH_EDGE_REGION = 32 , MESH_ALL_ATTRIBUTES = 255
}
 Indicates the attributes stored in a mesh and attached to the mesh elements (vertices, facets or volumes). More...
 

Functions

bool GEO::mesh_load (const std::string &filename, Mesh &M, const MeshIOFlags &ioflags=MeshIOFlags())
 Loads a mesh from a file. More...
 
bool GEO::mesh_load (InputGeoFile &geofile, Mesh &M, const MeshIOFlags &ioflags=MeshIOFlags())
 Loads a mesh from a GeoFile ('.geogram' file format). More...
 
bool GEO::mesh_save (const Mesh &M, const std::string &filename, const MeshIOFlags &ioflags=MeshIOFlags())
 Saves a mesh to a file. More...
 
bool GEO::mesh_save (const Mesh &M, OutputGeoFile &geofile, const MeshIOFlags &ioflags=MeshIOFlags())
 Saves a mesh to a GeoFile ('.geogram' file format) More...
 
void GEO::mesh_io_initialize ()
 

Detailed Description

Functions to load and save meshes.

Definition in file mesh_io.h.

Macro Definition Documentation

◆ geo_register_MeshIOHandler_creator

#define geo_register_MeshIOHandler_creator (   type,
  name 
)     geo_register_creator(GEO::MeshIOHandlerFactory, type, name)

Helper macro to register a MeshIOHandler implementation.

See also
MeshIOHandlerFactory

Definition at line 451 of file mesh_io.h.