31#if defined(MeshWriter_RECURSES)
32#error Recursive header files inclusion detected in MeshWriter.h
35#define MeshWriter_RECURSES
37#if !defined MeshWriter_h
45#include <boost/static_assert.hpp>
46#include "DGtal/base/Common.h"
47#include "DGtal/shapes/Mesh.h"
75 template <
typename TPo
int>
94 bool exportColor=
true);
120 const std::string nameMTLFile,
150 template <
typename TPo
int>
165 template <
typename TPo
int>
179#include "DGtal/io/writers/MeshWriter.ih"
186#undef MeshWriter_RECURSES
Aim: This class is defined to represent a surface mesh through a set of vertices and faces....
DGtal is the top-level namespace which contains all DGtal functions and types.
void operator>>(const Display3D< Space, KSpace > &aDisplay3D, DGtal::Mesh< typename Display3D< Space, KSpace >::RealPoint > &aMesh)
Aim: Export a Mesh (Mesh object) in different format as OFF and OBJ).
static bool export2OBJ_colors(std::ostream &out, std::ostream &outMTL, const std::string nameMTLFile, const Mesh< TPoint > &aMesh)
static bool export2OBJ_colors(std::ostream &out, const Mesh< TPoint > &aMesh)
static bool export2OBJ(std::ostream &out, const Mesh< TPoint > &aMesh)
static bool export2OFF(std::ostream &out, const Mesh< TPoint > &aMesh, bool exportColor=true)