7#ifndef meshConverter2D_hh
8#define meshConverter2D_hh
45 virtual uint ncell()
const {
return quadList_.size(); }
48 virtual std::ostream&
info(std::ostream&
os)
const;
59 std::list<Quad2d*> quadList_;
61 bool hasQuads, hasTris;
64 class S :
public Scan2 {
66 S(std::list<Quad2d*>& cell) :
67 idx_(cell.begin()), cell_(cell) {}
69 bool eos()
const {
return idx_ == cell_.end(); }
70 Quad2d& operator++(
int) {
return *(*idx_++); }
71 Scan2* clone()
const {
return new S(*
this); }
73 std::list<Quad2d*>::iterator idx_;
74 std::list<Quad2d*>& cell_;
78 void convertCell_(Cell2& c,
const uint level);
virtual uint ncell() const
Returns the number of cells in the mesh.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
ConvertMeshQuads(Mesh2 &m, const uint level)
Scan< Cell2 > Scan2
A scanner for a 2D mesh.
Set< F > makeSet(uint n, const F &first,...)