OFF file reader implementation in order to read points from an OFF file. More...
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.0.0 - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding. - Copyright : MIT | Generated on Tue Sep 24 2019 09:57:51 for GUDHI by Doxygen 1.8.13 |