4 #ifndef DUNE_UGGRID_FACTORY_HH
5 #define DUNE_UGGRID_FACTORY_HH
14 #include <dune/common/fvector.hh>
158 template <
int dimworld>
165 dune_static_assert(dimworld==2 || dimworld || 3,
"UGGrid only in 2d and 3d");
188 virtual void insertVertex(
const FieldVector<ctype,dimworld>& pos);
195 const std::vector<unsigned int>& vertices);
221 template<
int codim >
234 return UG_NS<dimension>::levelIndex(grid_->getRealImplementation(entity).target_);
244 return UG_NS<dimension>::levelIndex(grid_->getRealImplementation(entity).target_);
257 bool factoryOwnsGrid_;
260 std::vector<array<int, dimworld*2-2> > boundarySegmentVertices_;
264 std::vector<unsigned char> elementTypes_;
268 std::vector<unsigned int> elementVertices_;
271 std::vector<FieldVector<double, dimworld> > vertexPositions_;