3#ifndef DUNE_DGF_DUNEGRIDFORMATPARSER_HH
4#define DUNE_DGF_DUNEGRIDFORMATPARSER_HH
11#include <dune/grid/io/file/dgfparser/entitykey.hh>
47 typedef enum {Simplex,Cube,General} element_t;
49 typedef enum {counterclockwise=1,clockwise=-1} orientation_t;
89 bool readDuneGrid( std::istream &input,
int dimG,
int dimW );
92 void writeTetgenPoly (
const std::string &, std::string &, std::string & );
94 void writeTetgenPoly ( std::ostream & out,
const bool writeSegments =
true );
97 void generateBoundaries ( std::istream &,
bool );
100 void generateSimplexGrid ( std::istream & );
101 void readTetgenTriangle (
const std::string & );
104 void removeCopies ();
106 void setOrientation (
int use1,
int use2,
107 orientation_t orientation=counterclockwise );
109 void setRefinement (
int use1,
int use2,
int is1=-1,
int is2=-1 );
111 double testTriang (
int snr );
113 std::vector< double > & getElParam (
int i, std::vector< double > & coord );
115 std::vector< double > & getVtxParam (
int i, std::vector< double > & coord );
117 static std::string temporaryFileName ();
123 std::vector < std::vector < double > > vtx;
129 double minVertexDistance;
132 std :: vector< std :: vector< unsigned int > > elements;
137 std::vector < std::vector < int > > bound;
143 typedef std::pair < int, BoundaryParameter > BndParam;
144 typedef std::map< DGFEntityKey< unsigned int >, BndParam > facemap_t;
148 bool haveBndParameters;
161 int nofvtxparams,nofelparams;
163 std::vector< std::vector< double > > vtxParams,elParams;
168 std::vector < double > emptyParam_;
175 template<
class Gr
idType >
176 friend struct DGFGridFactory;
178 template<
class Gr
idType >
179 friend struct DGFBaseFactory;
Dune namespace.
Definition: alignment.hh:10
Contains types for additional features.
Definition: parser.hh:21
static const type & defaultValue()
default constructor
Definition: parser.hh:26
static const char delimiter
delimiter
Definition: parser.hh:39
static type convert(const std::string ¶meter)
copy from string
Definition: parser.hh:33
std::string type
type of additional boundary parameters
Definition: parser.hh:23