Aim: An helper class for reading mesh files (Wavefront OBJ at this point) and creating a SurfaceMesh.
More...
#include <DGtal/io/readers/SurfaceMeshReader.h>
template<typename TRealPoint, typename TRealVector>
struct DGtal::SurfaceMeshReader< TRealPoint, TRealVector >
Aim: An helper class for reading mesh files (Wavefront OBJ at this point) and creating a SurfaceMesh.
Description of template class 'SurfaceMeshReader'
- Template Parameters
-
TRealPoint | an arbitrary model of RealPoint. |
TRealVector | an arbitrary model of RealVector. |
- Examples
- geometry/meshes/obj-curvature-measures-icnc-3d.cpp, geometry/meshes/obj-curvature-measures-icnc-XY-3d.cpp, geometry/volumes/digitalPolyhedronBuilder3D.cpp, geometry/volumes/standardDigitalPolyhedronBuilder3D.cpp, and shapes/exampleSurfaceMesh.cpp.
Definition at line 63 of file SurfaceMeshReader.h.
◆ Faces
template<typename TRealPoint , typename TRealVector >
◆ Index
template<typename TRealPoint , typename TRealVector >
◆ RealPoint
template<typename TRealPoint , typename TRealVector >
◆ RealVector
template<typename TRealPoint , typename TRealVector >
◆ Self
template<typename TRealPoint , typename TRealVector >
◆ Size
template<typename TRealPoint , typename TRealVector >
◆ SurfaceMesh
template<typename TRealPoint , typename TRealVector >
◆ Vertices
template<typename TRealPoint , typename TRealVector >
◆ BOOST_STATIC_ASSERT()
template<typename TRealPoint , typename TRealVector >
◆ readOBJ()
template<typename TRealPoint , typename TRealVector >
Reads an input file as an OBJ file format and outputs the corresponding surface mesh.
- Parameters
-
[in,out] | input | the input stream where the OBJ file is read. |
[out] | smesh | the output surface mesh. |
- Returns
- 'true' if both reading the input stream was ok and the created mesh is ok.
Referenced by main().
◆ split()
template<typename TRealPoint , typename TRealVector >
static std::vector< std::string > DGtal::SurfaceMeshReader< TRealPoint, TRealVector >::split |
( |
const std::string & | str, |
|
|
char | delim = ' ' ) |
|
static |
Splits a string str into several strings according to a delimiter delim.
- Parameters
-
[in] | str | any string. |
[in] | delim | any delimiter character. |
- Returns
- the vector of split strings.
◆ verifyIndicesUniqueness()
template<typename TRealPoint , typename TRealVector >
Checks that every index in indices are different from the others.
- Parameters
-
indices | a vector of integer indices |
- Returns
- 'true' iff the integer indices are all pairwise different.
◆ dimension
template<typename TRealPoint , typename TRealVector >
The documentation for this struct was generated from the following file: