31#if defined(MeshReader_RECURSES)
32#error Recursive header files inclusion detected in MeshReader.h
35#define MeshReader_RECURSES
37#if !defined MeshReader_h
46#include <DGtal/kernel/SpaceND.h>
47#include "DGtal/base/Common.h"
48#include "DGtal/shapes/Mesh.h"
97 template <
typename TPo
int>
116 bool onlyFaceVertex=
false);
163 std::map<std::string, DGtal::Color>
readMaterial( std::istream & input);
180 template <
typename TPo
int>
193#include "DGtal/io/readers/MeshReader.ih"
201#undef MeshReader_RECURSES
Aim: This class is defined to represent a surface mesh through a set of vertices and faces....
VertexStorage::size_type Index
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: Defined to import OFF and OFS surface mesh. It allows to import a Mesh object and takes into acc...
static bool importOFSFile(const std::string &filename, DGtal::Mesh< TPoint > &aMesh, bool invertVertexOrder=false, double scale=1.0)
static std::map< std::string, DGtal::Color > readMaterial(std::istream &input)
static bool importOFFFile(const std::string &filename, DGtal::Mesh< TPoint > &aMesh, bool invertVertexOrder=false, bool onlyFaceVertex=false)
static bool importOBJFile(const std::string &filename, DGtal::Mesh< TPoint > &aMesh, bool onlyFaceVertex=false)
static bool verifyIndicesUniqueness(const std::vector< typename DGtal::Mesh< TPoint >::Index > &indices)