28 int get ( std::vector< std::vector< int > > &polyhedra )
31 std::vector< int > polyhedron;
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 );
42 polyhedron.push_back( polyIdx );
45 polyhedra.push_back( polyhedron );
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();