DGtal
1.5.beta
|
Aim: An helper class for reading mesh files (Wavefront OBJ at this point) and creating a SurfaceMesh. More...
#include <DGtal/io/readers/SurfaceMeshReader.h>
Public Types | |
typedef TRealPoint | RealPoint |
typedef TRealVector | RealVector |
typedef SurfaceMeshReader< RealPoint, RealVector > | Self |
typedef DGtal::SurfaceMesh< RealPoint, RealVector > | SurfaceMesh |
typedef SurfaceMesh::Size | Size |
typedef SurfaceMesh::Index | Index |
typedef SurfaceMesh::Vertices | Vertices |
typedef SurfaceMesh::Faces | Faces |
Public Member Functions | |
BOOST_STATIC_ASSERT ((dimension==3)) | |
Static Public Member Functions | |
static bool | verifyIndicesUniqueness (const std::vector< Index > &indices) |
static std::vector< std::string > | split (const std::string &str, char delim=' ') |
static bool | readOBJ (std::istream &input, SurfaceMesh &smesh) |
Static Public Attributes | |
static const Dimension | dimension = RealPoint::dimension |
Aim: An helper class for reading mesh files (Wavefront OBJ at this point) and creating a SurfaceMesh.
Description of template class 'SurfaceMeshReader'
TRealPoint | an arbitrary model of RealPoint. |
TRealVector | an arbitrary model of RealVector. |
Definition at line 63 of file SurfaceMeshReader.h.
typedef SurfaceMesh::Faces DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::Faces |
Definition at line 75 of file SurfaceMeshReader.h.
typedef SurfaceMesh::Index DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::Index |
Definition at line 73 of file SurfaceMeshReader.h.
typedef TRealPoint DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::RealPoint |
Definition at line 65 of file SurfaceMeshReader.h.
typedef TRealVector DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::RealVector |
Definition at line 66 of file SurfaceMeshReader.h.
typedef SurfaceMeshReader< RealPoint, RealVector > DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::Self |
Definition at line 67 of file SurfaceMeshReader.h.
typedef SurfaceMesh::Size DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::Size |
Definition at line 72 of file SurfaceMeshReader.h.
typedef DGtal::SurfaceMesh< RealPoint, RealVector > DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::SurfaceMesh |
Definition at line 71 of file SurfaceMeshReader.h.
typedef SurfaceMesh::Vertices DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::Vertices |
Definition at line 74 of file SurfaceMeshReader.h.
DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::BOOST_STATIC_ASSERT | ( | (dimension==3) | ) |
|
static |
Reads an input file as an OBJ file format and outputs the corresponding surface mesh.
[in,out] | input | the input stream where the OBJ file is read. |
[out] | smesh | the output surface mesh. |
|
static |
Splits a string str into several strings according to a delimiter delim.
[in] | str | any string. |
[in] | delim | any delimiter character. |
|
static |
Checks that every index in indices are different from the others.
indices | a vector of integer indices |
|
static |
Definition at line 68 of file SurfaceMeshReader.h.