Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_TRIMESH_TRIMESH_CORE_ACCESS_H
00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_TRIMESH_TRIMESH_CORE_ACCESS_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 namespace OpenTissue
00013 {
00014 namespace trimesh
00015 {
00016 class trimesh_core_access
00017 {
00018 public:
00019
00020 template<typename feature_iterator,typename handle>
00021 static void set_self_handle(feature_iterator feature,handle self) { feature->set_handle(self); }
00022
00023 template<typename feature_iterator,typename mesh_type>
00024 static void set_owner(feature_iterator feature,mesh_type * owner){ feature->set_owner(owner); }
00025
00026 template<typename face_iterator,typename vertex_handle>
00027 static void set_vertex0_handle(face_iterator f,vertex_handle v){ f->set_vertex0_handle(v); }
00028
00029 template<typename face_iterator,typename vertex_handle>
00030 static void set_vertex1_handle(face_iterator f,vertex_handle v){ f->set_vertex1_handle(v); }
00031
00032 template<typename face_iterator,typename vertex_handle>
00033 static void set_vertex2_handle(face_iterator f,vertex_handle v){ f->set_vertex2_handle(v); }
00034
00035 template<typename vertex_iterator>
00036 static void increment_face_counter(vertex_iterator v){ ++(v->m_face_count); }
00037
00038 template<typename vertex_iterator>
00039 static void decrement_face_counter(vertex_iterator v){ --(v->m_face_count); }
00040 };
00041
00042 }
00043 }
00044
00045
00046 #endif