Commit a0a5767c authored by Martin Heistermann's avatar Martin Heistermann

Implement vector(HEH) and length(HEH) in addition to the EH implementations.

parent 418e5494
Pipeline #10999 passed with stage
in 6 minutes and 29 seconds
......@@ -169,12 +169,24 @@ public:
TopologyKernelT::clear(_clearProps);
}
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();
}
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();
}
PointT vector(const HalfEdgeHandle& _heh) const {
const typename TopologyKernelT::Edge& e = TopologyKernelT::halfedge(_heh);
return (vertex(e.to_vertex()) - vertex(e.from_vertex()));
}
PointT vector(const EdgeHandle& _eh) const {
const typename TopologyKernelT::Edge& e = TopologyKernelT::edge(_eh);
......
Markdown is supported
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