33 #ifndef __H__UG_PROMESH__new_tools__
34 #define __H__UG_PROMESH__new_tools__
54 for(
size_t i = 0; i < 3; ++i){
57 locOut[i] = (glob[i] -
min[i]) / d;
65 for(
size_t i = 0; i < 3; ++i){
67 globOut[i] = loc[i] * d +
min[i];
VertexIterator vertices_begin()
VertexIterator vertices_end()
Definition: new_tools.h:45
vector3 max
Definition: new_tools.h:72
vector3 min
Definition: new_tools.h:71
void set_max(const vector3 &val)
Definition: new_tools.h:48
void set_min(const vector3 &val)
Definition: new_tools.h:47
const vector3 & get_min() const
Definition: new_tools.h:49
void local_to_global(const vector3 &loc, vector3 &globOut)
Definition: new_tools.h:63
void global_to_local(const vector3 &glob, vector3 &locOut)
Definition: new_tools.h:52
const vector3 & get_max() const
Definition: new_tools.h:50
position_accessor_t & position_accessor()
returns accessor to vertex positions
Definition: mesh.h:113
Grid & grid()
Definition: mesh.h:99
void CalculateBoundingBox(size_t npoints, const MathVector< dim > points[], MathVector< dim > &vMinBB, MathVector< dim > &vMaxBB)
SmartPtr< Box > GetBoundingBox(Mesh *obj)
Definition: new_tools.h:78
SmartPtr< T, FreePolicy > make_sp(T *inst)