33 #ifndef __H__UG_bounding_box_util
34 #define __H__UG_bounding_box_util
41 template <
class TAAPos>
42 AABox<typename TAAPos::ValueType>
49 template <
class TElem,
class TAAPos>
50 AABox<typename TAAPos::ValueType>
54 typename TElem::ConstVertexArray vrts = e->vertices();
55 box_t box(aaPos[vrts[0]], aaPos[vrts[0]]);
56 for(
size_t i = 1; i < e->num_vertices(); ++i){
57 box = box_t(box, aaPos[vrts[i]]);
Base-class for all vertex-types.
Definition: grid_base_objects.h:231
AABox< typename TAAPos::ValueType > CalculateBoundingBox(Vertex *e, TAAPos aaPos)
calculates the smallest axis aligned box that contains the given vertex
Definition: bounding_box_util.h:43