Commit eacdcab4 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'halfedge-vector-and-length' into 'master'

Halfedge vector and length

See merge request !67
parents 2ef5fbed 5c6e58ee
Pipeline #11138 passed with stage
in 4 minutes and 58 seconds
...@@ -169,10 +169,18 @@ public: ...@@ -169,10 +169,18 @@ public:
TopologyKernelT::clear(_clearProps); TopologyKernelT::clear(_clearProps);
} }
typename PointT::value_type length(const HalfEdgeHandle& _heh) const {
return vector(_heh).length();
}
typename PointT::value_type length(const EdgeHandle& _eh) const { typename PointT::value_type length(const EdgeHandle& _eh) const {
return vector(_eh).length();
}
const typename TopologyKernelT::Edge& e = TopologyKernelT::edge(_eh); PointT vector(const HalfEdgeHandle& _heh) const {
return (vertex(e.to_vertex()) - vertex(e.from_vertex())).length();
const typename TopologyKernelT::Edge& e = TopologyKernelT::halfedge(_heh);
return (vertex(e.to_vertex()) - vertex(e.from_vertex()));
} }
PointT vector(const EdgeHandle& _eh) const { PointT vector(const EdgeHandle& _eh) const {
......
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