Skip to content

Commit

Permalink
Use the default comparison for point_type_fp in PathFindingSurface
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Jan 24, 2021
1 parent 3b3855f commit 773db83
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions path_finding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,10 @@ class PathFindingSurface {
}

sort(all_vertices.begin(),
all_vertices.end(),
[](const point_type_fp& a, const point_type_fp& b) {
return std::tie(a.x(), a.y()) < std::tie(b.x(), b.y());
});
all_vertices.end());
all_vertices.erase(
std::unique(all_vertices.begin(),
all_vertices.end(),
[](const point_type_fp& a, const point_type_fp& b) {
return std::tie(a.x(), a.y()) == std::tie(b.x(), b.y());
}),
all_vertices.end()),
all_vertices.end());
for (const auto& v : all_vertices) {
bg::expand(all_vertices_box, v);
Expand Down

0 comments on commit 773db83

Please sign in to comment.