Commit 5c6e58ee authored by Martin Heistermann's avatar Martin Heistermann
Browse files

simplify length()

parent a0a5767c
Pipeline #11124 passed with stage
in 6 minutes and 16 seconds
......@@ -170,15 +170,11 @@ public:
typename PointT::value_type length(const HalfEdgeHandle& _heh) const {
const typename TopologyKernelT::Edge& e = TopologyKernelT::halfedge(_heh);
return (vertex(e.to_vertex()) - vertex(e.from_vertex())).length();
return vector(_heh).length();
typename PointT::value_type length(const EdgeHandle& _eh) const {
const typename TopologyKernelT::Edge& e = TopologyKernelT::edge(_eh);
return (vertex(e.to_vertex()) - vertex(e.from_vertex())).length();
return vector(_eh).length();
PointT vector(const HalfEdgeHandle& _heh) const {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment