Gudhi  1.2.0
 All Classes Functions Variables Typedefs Friends Groups Pages
Gudhi::Off_reader Class Reference

#include <Off_reader.h>

Public Member Functions

template<typename OffVisitor >
bool read (OffVisitor &off_visitor)
 

Detailed Description

Read an off file and calls a visitor methods while reading it. An off file must have its first/snd line in this format : OFF num_vert num_faces num_edges

A noff file must have its first/snd line in this format : nOFF dim num_vert num_faces num_edges

The number of edges num_edges is optional and can be left to zero.

Member Function Documentation

template<typename OffVisitor >
bool Gudhi::Off_reader::read ( OffVisitor &  off_visitor)
inline

read an off file and calls the following methods : void init(int dim,int num_vertices,int num_faces,int num_edges); //num_edges may not be set void point(const std::vector<double>& point); void maximal_face(const std::list<int>& face); void done(); of the visitor when reading a point or a maximal face.


The documentation for this class was generated from the following file: