• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

/home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/core/containers/mesh/common/util/mesh_compute_face_maximum_coord.h

Go to the documentation of this file.
00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_COMMON_UTIL_MESH_COMPUTE_FACE_MAXIMUM_COORD_H
00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_COMMON_UTIL_MESH_COMPUTE_FACE_MAXIMUM_COORD_H
00003 //
00004 // OpenTissue Template Library
00005 // - A generic toolbox for physics-based modeling and simulation.
00006 // Copyright (C) 2008 Department of Computer Science, University of Copenhagen.
00007 //
00008 // OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php
00009 //
00010 #include <OpenTissue/configuration.h>
00011 
00012 namespace OpenTissue
00013 {
00014   namespace mesh
00015   {
00016 
00017     template<typename face_type,typename vector3_type>
00018     void compute_face_maximum_coord(face_type const & f, vector3_type & max_coord)
00019     {
00020       typedef typename face_type::mesh_type               mesh_type;
00021       typedef typename mesh_type::face_vertex_circulator  face_vertex_circulator;
00022       face_vertex_circulator v(f),end;
00023       max_coord = v->m_coord;
00024       for(;v!=end;++v)
00025         max_coord = max(max_coord,v->m_coord);
00026     }
00027 
00028   } // namespace mesh
00029 } // namespace OpenTissue
00030 
00031 //OPENTISSUE_CORE_CONTAINERS_MESH_COMMON_UTIL_MESH_COMPUTE_FACE_MAXIMUM_COORD_H
00032 #endif

Generated on Thu Dec 1 2011 12:51:12 for HUMIM Tracker by  doxygen 1.7.1