16#define ImportMeshReadInts_D 0
17#define ImportMeshReadLine_D 0
47 std::vector<Connector1*> edg_;
94 bool first =
false)
const;
100 const std::vector<Real3d>&
vertices);
105 void readAttributes_(
const std::string&
bound,
116 std::istringstream input(i.c_str());
123 DEBUGL(ImportMeshReadLine_D,
"inserted " << v.back());
126 for(
uint i = 0; i < a.
size(); ++i) a[i] = v[i];
127 DEBUGL(ImportMeshReadLine_D,
"array = " << a);
133 for (
typename std::vector<T*>::iterator i =
field.begin();
134 i !=
field.end(); ++i) {
140 std::ostream& operator<<(std::ostream&
os,
const std::vector<T*>&
field) {
142 for (
typename std::vector<T*>::const_iterator i =
field.begin();
143 i !=
field.end(); ++j) {
144 if (i !=
field.begin())
os <<
", ";
146 os <<
'(' << j <<
',';
147 if (val)
os << *val;
else os <<
'0';
uint size() const
Returns the requested size of the array.
void resize(const uint sz)
const uint idxStart_
Starting point of indices in the files (1 or 0)
ImportMesh(const uint idxStart=1)
uint readInts_(const std::string &i, std::vector< int > &v) const
uint readLine_(const std::string &i, Array< F > &a, bool first=false) const
void readCells_(const std::string &elms, const Array< bool > &dimensions, const std::vector< Real3d > &vertices)
virtual void createEntity_(const MultiIndex< 3 > &idx)
MultiArray< 1, Vertex * > Vtx_
Array of the entities.
void clear_(std::vector< T * > &field)
Deletes the content of field of pointers.
virtual void createCell_(const MultiIndex< 2 > &idx)
MultiArray< 1, Attribute > oneAttr_
Attributes of entities.
virtual void createEntity_(const MultiIndex< 1 > &idx)
Creation of topological entities Vertex and Edge.
void newCell_(MultiIndex< dim > i)
Creates topological entities and a geometrical cell.
std::vector< Vertex * > vtx_
List of entities.
#define DEBUGL(doit, msg)
Set< F > makeSet(uint n, const F &first,...)