Skip to content

Commit

Permalink
Applied clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo authored and github-actions[bot] committed Jan 18, 2024
1 parent db78208 commit d4a5aaa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/utils/polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
#include <range/v3/range/primitives.hpp>
#include <range/v3/to_container.hpp>
#include <range/v3/view/c_str.hpp>
#include <range/v3/view/concat.hpp>
#include <range/v3/view/filter.hpp>
#include <range/v3/view/join.hpp>
#include <range/v3/view/sliding.hpp>
#include <range/v3/view/take.hpp>
#include <range/v3/view/transform.hpp>
#include <range/v3/view/zip.hpp>
#include <range/v3/view/concat.hpp>
#include <range/v3/view/take.hpp>
#include <spdlog/spdlog.h>

#include "utils/ListPolyIt.h"
Expand Down Expand Up @@ -848,12 +848,12 @@ Polygons Polygons::toPolygons(ClipperLib::PolyTree& poly_tree)
[](const auto& path)
{
const auto line_string = ranges::views::concat(path, path | ranges::views::take(1))
| ranges::views::transform(
[](const auto& point)
{
return fmt::format("{} {}", point.X, point.Y);
})
| ranges::views::join(ranges::views::c_str(", ")) | ranges::to<std::string>();
| ranges::views::transform(
[](const auto& point)
{
return fmt::format("{} {}", point.X, point.Y);
})
| ranges::views::join(ranges::views::c_str(", ")) | ranges::to<std::string>();
return "(" + line_string + ")";
})
| ranges::views::join(ranges::views::c_str(", ")) | ranges::to<std::string>();
Expand Down

0 comments on commit d4a5aaa

Please sign in to comment.