OFF file reader implementation in order to read points from an OFF file. More...
#include </home/gailuron/workspace/gudhi/gudhi-devel/build/gudhi.3.5.0/include/gudhi/Points_off_io.h>
Public Member Functions | |
Points_off_reader (const std::string &name_file) | |
Reads the OFF file and constructs a vector of points from the points that are in the OFF file. More... | |
bool | is_valid () const |
Returns if the OFF file read operation was successful or not. More... | |
const std::vector< Point_d > & | get_point_cloud () const |
Point cloud getter. More... | |
OFF file reader implementation in order to read points from an OFF file.
This class is using the Points_off_visitor_reader to visit the OFF file according to Off_reader.
Point_d must have a constructor with the following form:
where d is the point dimension.
This example loads points from an OFF file and builds a vector of points (vector of double). Then, it is asked to display the points.
When launching:
the program outputs a file ../../data/points/alphacomplexdoc.off.txt:
|
inline |
Reads the OFF file and constructs a vector of points from the points that are in the OFF file.
[in] | name_file | OFF file to read. |
|
inline |
Point cloud getter.
|
inline |
Returns if the OFF file read operation was successful or not.
GUDHI Version 3.5.0 - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding. - Copyright : MIT | Generated on Thu Jan 13 2022 08:34:27 for GUDHI by Doxygen 1.9.2 |