Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_TRIMESH_TRIMESH_VERTEX_H
00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_TRIMESH_TRIMESH_VERTEX_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 namespace OpenTissue
00013 {
00014 namespace trimesh
00015 {
00016 template< typename trimesh_type_ >
00017 class TriMeshVertex : public trimesh_type_::vertex_traits
00018 {
00019 public:
00020
00021 typedef trimesh_type_ mesh_type;
00022 typedef typename mesh_type::vertex_handle vertex_handle;
00023
00024 private:
00025
00026 vertex_handle m_self;
00027 mesh_type * m_owner;
00028 unsigned int m_face_count;
00029
00030 public:
00031
00032 TriMeshVertex()
00033 : m_self()
00034 , m_owner(0)
00035 , m_face_count(0)
00036 {};
00037
00038 public:
00039
00040 vertex_handle get_handle() const { return m_self; };
00041 mesh_type * get_owner() const { return m_owner; };
00042 unsigned int get_face_count() const { return m_face_count; };
00043
00044 private:
00045
00046 friend class trimesh_core_access;
00047 void set_handle(vertex_handle v) { m_self = v; };
00048 void set_owner(mesh_type * owner) { m_owner = owner; };
00049
00050 };
00051
00052 }
00053 }
00054
00055
00056 #endif