5#ifndef DUNE_POLYHEDRON_HH
6#define DUNE_POLYHEDRON_HH
28 int get ( std::vector< std::vector< int > > &polyhedra )
38 if( (polyIdx < 0) || (polyIdx >
numPolys_) )
39 DUNE_THROW(
DGFException,
"Error in " << *
this <<
": Invalid polygon index (" << polyIdx <<
" not int [0, " <<
numPolys_ <<
"])" );
41 minPolyId =
std::min( minPolyId, polyIdx );
51 const size_t polySize = polyhedra.size();
52 for(
size_t i=0; i<polySize; ++i )
54 const size_t pSize = polyhedra[ i ].size();
55 for(
size_t j=0; j<pSize; ++j )
57 polyhedra[ i ][ j ] -= minPolyId;
61 return polyhedra.size();
Include standard header files.
Definition: agrid.hh:60
int min(const DofVectorPointer< int > &dofVector)
Definition: dofvector.hh:348
@ polyhedron
Definition: common.hh:142
void reset()
Definition: basic.hh:51
bool getnextline()
Definition: basic.cc:94
bool getnextentry(ENTRY &entry)
Definition: basic.hh:63
Definition: polyhedron.hh:23
const int numPolys_
Definition: polyhedron.hh:65
PolyhedronBlock(std::istream &in, int numPolys)
Definition: polyhedron.hh:24
int get(std::vector< std::vector< int > > &polyhedra)
Definition: polyhedron.hh:28
exception class for IO errors in the DGF parser
Definition: dgfexception.hh:16