Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_IS_VERTEX_NEIGHBORS_TRIANGULAR_H
00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_IS_VERTEX_NEIGHBORS_TRIANGULAR_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 #include <OpenTissue/core/containers/mesh/polymesh/util/polymesh_valency.h>
00013
00014 namespace OpenTissue
00015 {
00016 namespace polymesh
00017 {
00018
00027 template<typename mesh_type>
00028 bool is_vertex_neighbors_triangular(PolyMeshVertex<mesh_type> const & v)
00029 {
00030 typedef typename mesh_type::vertex_face_circulator vertex_face_circulator;
00031 vertex_face_circulator f(v),fend;
00032 for(;f!=fend;++f)
00033 if(valency(*f)!=3)
00034 return false;
00035 return true;
00036 }
00037
00038 }
00039 }
00040
00041
00042 #endif