23 #ifndef __VCG_TRI_UPDATE_BOUNDING
24 #define __VCG_TRI_UPDATE_BOUNDING
33 template <
class ComputeMeshType>
38 typedef ComputeMeshType MeshType;
39 typedef typename MeshType::VertexType VertexType;
40 typedef typename MeshType::VertexPointer VertexPointer;
41 typedef typename MeshType::VertexIterator VertexIterator;
45 static void Box(ComputeMeshType &m)
48 for(VertexIterator vi = m.vert.begin(); vi != m.vert.end(); ++vi)
49 if( !(*vi).IsD() ) m.bbox.Add((*vi).cP());
This class is used to compute or update the bounding box of a mesh..
Definition: bounding.h:35
static void Box(ComputeMeshType &m)
Calculates the bounding box of the given mesh m.
Definition: bounding.h:45
Definition: namespaces.dox:6