OFF file visitor implementation according to Off_reader in order to read points from an OFF file. More...
#include <include/gudhi/Points_off_io.h>
Public Member Functions | |
void | init (int dim, int num_vertices, int num_faces, int num_edges) |
Off_reader visitor init implementation. More... | |
void | point (const std::vector< double > &point) |
Off_reader visitor point implementation. More... | |
const std::vector< Point_d > & | get_point_cloud () const |
Point cloud getter. More... | |
OFF file visitor implementation according to Off_reader in order to read points from an OFF file.
|
inline |
Point cloud getter.
|
inline |
Off_reader visitor init implementation.
The init parameters are set from OFF file header. Dimension value is required in order to construct a vector of points.
[in] | dim | space dimension of vertices. |
[in] | num_vertices | number of vertices in the OFF file (not used). |
[in] | num_faces | number of faces in the OFF file (not used). |
[in] | num_edges | number of edges in the OFF file (not used). |
|
inline |
Off_reader visitor point implementation.
The point function is called on each vertex line from OFF file. This function inserts the vertex in the vector of points.
[in] | point | vector of vertex coordinates. |
Point_d must have a constructor with the following form: