IstreamComplex2DFmt Type |
class IstreamComplex2DFmt;
The class IstreamComplex2DFmt is an adapter to the grid interface for a grid given by a sequential stream, for example a file, in the complex2d format. By using this class, it is possible to read an arbitrary grid from this format, without knowing its details.
Cell-Vertex Input Grid Range
Vertex Grid Geometry
Defined in complex2d-format-input.h
Member | Description |
IstreamComplex2DFmt(istream&, int offset = 0) | Constructor, offset gives the lowest vertex number used (usually 0 or 1). |
coord_type const& coord(Vertex const& v) | access to vertex coordinates. |
a_grid_type Agrid; a_geom_type Ageom; // model of Mutable Grid Vertex Geometry ifstream in("grid.complex2d"); IstreamComplex2DFmt SrcG(in); // Grid & geom combined // (Agrid, Ageom) = (SrcG, SrcG) Construct(Agrid, Ageom, SrcG, SrcG);
Guntram Berti
IstreamComplex2DFmt Type |