• 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/polymesh/util/polymesh_is_sharing_vertex.h

Go to the documentation of this file.
00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_IS_SHARING_VERTEX_H
00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_IS_SHARING_VERTEX_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 #include <OpenTissue/core/containers/mesh/polymesh/util/polymesh_is_neighbor.h>
00013 
00014 namespace OpenTissue
00015 {
00016   namespace polymesh
00017   {
00018 
00030     template<typename mesh_type>
00031     bool is_sharing_vertex(PolyMeshFace<mesh_type> const & f0,PolyMeshFace<mesh_type> const & f1)
00032     {
00033       typedef typename mesh_type::const_face_vertex_circulator       const_face_vertex_circulator;
00034       typedef typename mesh_type::const_vertex_edge_circulator       const_vertex_edge_circulator;
00035 
00036       const_face_vertex_circulator v0(f0),end;
00037       for(;v0!=end;++v0)
00038         if( is_neighbor(f1,*v0) )
00039           return true;
00040       return false;
00041     }
00042 
00043   } // namespace polymesh
00044 } // namespace OpenTissue
00045 
00046 //OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_IS_SHARING_VERTEX_H
00047 #endif

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