3 #ifndef DUNE_BOUNDARYPROJECTION_HH
4 #define DUNE_BOUNDARYPROJECTION_HH
10 #include <dune/common/fvector.hh>
11 #include <dune/common/shared_ptr.hh>
13 #include <dune/geometry/multilineargeometry.hh>
22 template <
int dimworld>
34 template <
int dimworld >
56 return proj_( global );
64 template<
int dim,
int dimworld >
70 typedef MultiLinearGeometry<
typename Base::CoordinateType::value_type,dim-1,dimworld> FaceMapping;
85 const std::vector< CoordinateType > &vertices,
87 : faceMapping_( FaceMapping( type, vertices ) ),
88 boundarySegment_( boundarySegment )
98 return *boundarySegment_;
102 FaceMapping faceMapping_;
103 const shared_ptr< BoundarySegment > boundarySegment_;
113 template <
int dimworld>
131 const double factor =
radius_ / global.two_norm();
144 #endif // #ifndef DUNE_BOUNDARYPROJECTION_HH