Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_COMPUTE_EDGE_DIRECTION_H
00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_COMPUTE_EDGE_DIRECTION_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 namespace OpenTissue
00013 {
00014 namespace polymesh
00015 {
00016
00017 template<typename halfedge_type, typename vector3_type>
00018 void compute_edge_direction(halfedge_type const & h,vector3_type & u)
00019 {
00020 u = h.get_destination_iterator()->m_coord - h.get_origin_iterator()->m_coord;
00021 }
00022
00023 }
00024 }
00025
00026
00027 #endif