Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_GET_FACE_VERTICES_H
00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_GET_FACE_VERTICES_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 #include <OpenTissue/core/containers/mesh/polymesh/polymesh_face.h>
00013
00014 namespace OpenTissue
00015 {
00016 namespace polymesh
00017 {
00018
00019 template<typename mesh_type, typename vertex_ptr_container>
00020 void get_face_vertices(PolyMeshFace<mesh_type> & face, vertex_ptr_container & vertices)
00021 {
00022 typedef typename mesh_type::face_vertex_circulator face_vertex_circulator;
00023 vertices.clear();
00024 face_vertex_circulator v(face),end();
00025 for(;v!=end;++v)
00026 vertices.push_back( &(*v) );
00027 }
00028
00029 }
00030 }
00031
00032
00033 #endif