40 virtual std::ostream&
info(std::ostream&
os)
const;
75 uint readVertexLine_(
const std::string& i,
uint* idx,
Real3d* coord)
const;
86 inline S(std::vector<Cell2*>& cell) :
87 idx_(cell.begin()), cell_(cell) {}
89 inline bool eos()
const {
return idx_ == cell_.end(); }
93 std::vector<Cell2*>::iterator idx_;
94 std::vector<Cell2*>& cell_;
167 virtual std::ostream&
info(std::ostream&
os)
const;
Scanner class for Import2dMesh.
Scan2 * clone() const
Returns a clone of the scanner.
Cell2 & operator++(int)
Returns the next cell.
bool eos() const
Returns true if the end of the scanned set is reached.
std::vector< Connector2 * > cntr2_
List of entities.
void attributes_(const std::string boundary)
Reads attributes from file boundary.
std::vector< Cell2 * > cell_
List of cells.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
void import_()
Reads and builds the mesh.
const std::string coord_
File names of coordinates and cell files.
MultiArray< 3, Triangle * > Tri_
Array of the entities.
std::vector< Real3d > vertices_
Coordinates of the vertices.
virtual void createEntity_(const MultiIndex< 3 > &idx)
virtual uint ncell() const
Returns the number of cells in the mesh.
virtual void readVertices_()
reads the coordinates of the vertices
virtual void createEntity_(const MultiIndex< 1 > &idx)
Creation of topological entities.
virtual void createCell_(const MultiIndex< 3 > &idx)
Creation of geometrical cells with element mapping.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Import2dMesh(const std::string coord, const std::string elms, const uint idxStart=1)
Import2dMesh(const std::string coord, const std::string elms, const std::string boundary, const uint idxStart=1)
virtual void createEntity_(const MultiIndex< 1 > &idx)
Creation of topological entities Vertex and Edge.
Set< F > makeSet(uint n, const F &first,...)