00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_MESH_DEFAULT_TRAITS_H 00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_MESH_DEFAULT_TRAITS_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 00013 namespace OpenTissue 00014 { 00015 namespace mesh 00016 { 00017 00025 template<typename M> 00026 class DefaultVertexTraits 00027 { 00028 public: 00029 00030 typedef M math_types; 00031 typedef typename math_types::real_type real_type; 00032 typedef typename math_types::vector3_type vector3_type; 00033 00034 public: 00035 00036 vector3_type m_coord; 00037 vector3_type m_normal; 00038 real_type m_u; 00039 real_type m_v; 00040 vector3_type m_color; 00041 int m_tag; 00042 }; 00043 00044 class DefaultHalfEdgeTraits 00045 { 00046 public: 00047 int m_tag; 00048 }; 00049 00050 class DefaultEdgeTraits 00051 { 00052 public: 00053 int m_tag; 00054 }; 00055 00056 class DefaultFaceTraits 00057 { 00058 public: 00059 int m_tag; 00060 00061 }; 00062 00063 } // namespace mesh 00064 } // namespace OpenTissue 00065 00066 //OPENTISSUE_CORE_CONTAINERS_MESH_MESH_DEFAULT_TRAITS_H 00067 #endif