OFF file reader top class visitor. More...
Public Member Functions | |
template<typename OffVisitor > | |
bool | read (OffVisitor &off_visitor) |
Read an OFF file and calls the following methods : More... | |
OFF file reader top class visitor.
OFF file must be conform to OFF file format
|
inline |
Read an OFF file and calls the following methods :
void init(int dim,int num_vertices,int num_faces,int num_edges); // from file header - num_edges may not be set
void point(const std::vector<double>& point); // for each point read
void maximal_face(const std::list<int>& face); // for each face read
void done(); // upon file read is finished
of the visitor when reading a point or a maximal face. Edges are not taken into account.