3 #ifndef DUNE_POLYHEDRON_HH
4 #define DUNE_POLYHEDRON_HH
26 int get ( std::vector< std::vector< int > > &polyhedra )
36 if( (polyIdx < 0) || (polyIdx >
numPolys_) )
37 DUNE_THROW(
DGFException,
"Error in " << *
this <<
": Invalid polygon index (" << polyIdx <<
" not int [0, " <<
numPolys_ <<
"])" );
39 minPolyId = std::min( minPolyId, polyIdx );
49 const size_t polySize = polyhedra.size();
50 for(
size_t i=0; i<polySize; ++i )
52 const size_t pSize = polyhedra[ i ].size();
53 for(
size_t j=0; j<pSize; ++j )
55 polyhedra[ i ][ j ] -= minPolyId;
59 return polyhedra.size();
69 #endif // #ifndef DUNE_POLYHEDRON_HH