31 #if defined(SurfaceMeshReader_RECURSES)
32 #error Recursive header files inclusion detected in SurfaceMeshReader.h
33 #else // defined(SurfaceMeshReader_RECURSES)
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"
110 #endif // !defined SurfaceMeshReader_h
112 #undef SurfaceMeshReader_RECURSES
113 #endif // else defined(SurfaceMeshReader_RECURSES)
SurfaceMesh::Vertices Vertices
DGtal::uint32_t Dimension
Aim: Represents an embedded mesh as faces and a list of vertices. Vertices may be shared among faces ...
static std::vector< std::string > split(const std::string &str, char delim=' ')
static bool readOBJ(std::istream &input, SurfaceMesh &smesh)
static const Dimension dimension
std::vector< Face > Faces
std::vector< Vertex > Vertices
The type that defines a list/range of vertices (e.g. to define faces)
SurfaceMeshReader< RealPoint, RealVector > Self
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::SurfaceMesh< RealPoint, RealVector > SurfaceMesh
Aim: An helper class for reading mesh files (Wavefront OBJ at this point) and creating a SurfaceMesh.
BOOST_STATIC_ASSERT((dimension==3))
static const Dimension dimension
Copy of the static dimension of the Point/Vector.
std::size_t Size
The type for counting elements.
static bool verifyIndicesUniqueness(const std::vector< Index > &indices)
std::size_t Index
The type used for numbering vertices and faces.