OFF file visitor implementation according to Off_reader in order to read points from an OFF file.
More...
template<typename Point_3>
class Gudhi::Points_3D_off_visitor_reader< Point_3 >
OFF file visitor implementation according to Off_reader in order to read points from an OFF file.
◆ get_point_cloud()
template<typename Point_3>
Point cloud getter.
- Returns
- The point cloud.
◆ init()
template<typename Point_3>
Off_reader visitor init implementation.
The init parameters are set from OFF file header. Dimension value is required and the value must be 3.
- Parameters
-
[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). |
◆ is_valid()
template<typename Point_3>
Returns if the OFF file read operation was successful or not.
- Returns
- OFF file read status.
◆ point()
template<typename Point_3>
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.
- Parameters
-
[in] | point | vector of vertex coordinates. |
Point_3 must have a constructor with the following form:
template<class InputIterator > Point_3::Point_3(double x, double y, double z)
The documentation for this class was generated from the following file: