31#if defined(SurfaceMeshReader_RECURSES)
32#error Recursive header files inclusion detected in SurfaceMeshReader.h
35#define SurfaceMeshReader_RECURSES
37#if !defined SurfaceMeshReader_h
39#define SurfaceMeshReader_h
46#include "DGtal/base/Common.h"
47#include "DGtal/helpers/StdDefs.h"
48#include "DGtal/shapes/SurfaceMesh.h"
62 template <
typename TRealPo
int,
typename TRealVector >
88 std::vector< std::string >
split(
const std::string& str,
char delim =
' ');
106#include "SurfaceMeshReader.ih"
112#undef SurfaceMeshReader_RECURSES
static const Dimension dimension
Copy of the static dimension of the Point/Vector.
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::uint32_t Dimension
Aim: An helper class for reading mesh files (Wavefront OBJ at this point) and creating a SurfaceMesh.
static const Dimension dimension
static bool verifyIndicesUniqueness(const std::vector< Index > &indices)
static bool readOBJ(std::istream &input, SurfaceMesh &smesh)
SurfaceMeshReader< RealPoint, RealVector > Self
BOOST_STATIC_ASSERT((dimension==3))
SurfaceMesh::Vertices Vertices
DGtal::SurfaceMesh< RealPoint, RealVector > SurfaceMesh
static std::vector< std::string > split(const std::string &str, char delim=' ')
Aim: Represents an embedded mesh as faces and a list of vertices. Vertices may be shared among faces ...
std::vector< Vertex > Vertices
The type that defines a list/range of vertices (e.g. to define faces)
std::size_t Index
The type used for numbering vertices and faces.
std::size_t Size
The type for counting elements.
std::vector< Face > Faces