Mesh m(surf);
The surface object encapsulates the global geometric and topological information used by the mesh library, including the definition of the base domain and sampling the surface.
class Surface { public: virtual void base_mesh(int *np, int **fcs, int *nf) = 0; virtual void sample(int i, Vertex* v) = 0; virtual void sample(Edge* e, Vertex* v) = 0; virtual void sample(Face* f, Vertex* v) = 0; virtual float elenght(Edge* e) = 0; virtual float ref_rank(Edge* e) = 0; virtual float simpl_rank(Vertex* v) = 0; virtual Vertex* new_vertex(void) = 0; virtual void del_vertex(Vertex *v) = 0; };