#include <Off_reader.h>
Public Member Functions | |
template<typename OffVisitor > | |
bool | read (OffVisitor &off_visitor) |
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.
|
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.