Skip to content

Commit

Permalink
Minor text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaelRL committed Dec 17, 2024
1 parent a5b79b9 commit 7313b98
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ void test_pmesh(const Mesh& pmesh)

edge_descriptor longest_edge = PMP::longest_edge(pmesh);
assert(longest_edge != typename boost::graph_traits<Mesh>::edge_descriptor());
FT le_length = PMP::squared_edge_length(longest_edge, pmesh);
std::cout << "longest edge is:" << get(CGAL::vertex_point, pmesh, source(longest_edge, pmesh))
FT le_sq_length = PMP::squared_edge_length(longest_edge, pmesh);
std::cout << "longest edge is: " << get(CGAL::vertex_point, pmesh, source(longest_edge, pmesh))
<< " -> " << get(CGAL::vertex_point, pmesh, target(longest_edge, pmesh))
<< ", length = " << PMP::edge_length(longest_edge, pmesh) << std::endl;
for(edge_descriptor e : edges(pmesh))
{
// this could be wrong due to numerical errors, but the tested meshes are gentle enough
// such that we don't need a predicate... right?
assert(le_length >= PMP::squared_edge_length(e, pmesh));
assert(le_sq_length >= PMP::squared_edge_length(e, pmesh));
}

std::pair<halfedge_descriptor, FT> res = PMP::longest_border(pmesh);
Expand Down

0 comments on commit 7313b98

Please sign in to comment.