Skip to content

Commit

Permalink
Save a step in PathFindingSurface constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Jan 24, 2021
1 parent e852127 commit 3b3855f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions path_finding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ class PathFindingSurface {
return;
}
if (keep_in) {
multi_polygon_type_fp total_keep_in;
total_keep_in = *keep_in;
total_keep_in = total_keep_in - keep_out;
multi_polygon_type_fp total_keep_in = *keep_in - keep_out;

for (const auto& poly : total_keep_in) {
for (const auto& point : poly.outer()) {
Expand Down

0 comments on commit 3b3855f

Please sign in to comment.