00001 #ifndef OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_COMPUTE_VERTEX_EDGE_VORONOI_PLANE_H 00002 #define OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_COMPUTE_VERTEX_EDGE_VORONOI_PLANE_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 #include <OpenTissue/core/containers/mesh/polymesh/util/polymesh_compute_edge_direction.h> 00013 00014 namespace OpenTissue 00015 { 00016 namespace polymesh 00017 { 00018 template<typename vertex_type, typename halfedge_type, typename plane_type> 00019 void compute_vertex_edge_voronoi_plane(vertex_type const & v, halfedge_type const & h, plane_type & plane ) 00020 { 00021 assert(v.get_handle() == h.get_destination_handle() || !"v must be destination of h"); 00022 typename plane_type::vector3_type u; 00023 compute_edge_direction(h,u); 00024 plane.set(u,v.m_coord); 00025 } 00026 00027 } // namespace polymesh 00028 } // namespace OpenTissue 00029 00030 //OPENTISSUE_CORE_CONTAINERS_MESH_POLYMESH_UTIL_POLYMESH_COMPUTE_VERTEX_EDGE_VORONOI_PLANE_H 00031 #endif