cgal icon indicating copy to clipboard operation
cgal copied to clipboard

PMP Feature request: Add longest_edge()

Open afabri opened this issue 4 years ago • 1 comments

Issue Details

Add a function that returns a halfedge descriptor for the longest edge of a mesh. I am also surprised that we have a function computing the edge length and not the squared edge length. We should not call sqrt for all edges for finding the longest one.

afabri avatar Jun 23 '21 15:06 afabri

almost a oneliner with std::max_element() but I agree it is nice to have.

sloriot avatar Jun 24 '21 06:06 sloriot