Skip to content

Commit

Permalink
Applied clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
rburema authored and github-actions[bot] committed Jun 12, 2024
1 parent f6de85b commit a15471f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/SkeletalTrapezoidation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ void SkeletalTrapezoidation::generateLocalMaximaSingleBeads()
continue;
}
Beading& beading = node.data_.getBeading()->beading_;
if(beading.bead_widths.size() % 2 == 1 && node.isLocalMaximum(true))
if (beading.bead_widths.size() % 2 == 1 && node.isLocalMaximum(true))
{
const size_t inset_index = beading.bead_widths.size() / 2;
const coord_t width = beading.bead_widths[inset_index];
Expand All @@ -2231,14 +2231,14 @@ void SkeletalTrapezoidation::generateLocalMaximaSingleBeads()
}
}

if(accumulator_count > 0)
if (accumulator_count > 0)
{
bool replace_with_local_maxima = generated_toolpaths.empty() || generated_toolpaths[0].empty();
coord_t total_path_length = 0;
if(! replace_with_local_maxima)
if (! replace_with_local_maxima)
{
coord_t min_width = std::numeric_limits<coord_t>::max();
for(auto line: generated_toolpaths[0])
for (auto line : generated_toolpaths[0])
{
total_path_length += line.length();
for (const ExtrusionJunction& j : line)
Expand All @@ -2248,7 +2248,7 @@ void SkeletalTrapezoidation::generateLocalMaximaSingleBeads()
}
replace_with_local_maxima |= total_path_length <= min_width / 2;
}
if(replace_with_local_maxima)
if (replace_with_local_maxima)
{
const coord_t width = width_accumulator / accumulator_count;
local_maxima_accumulator = local_maxima_accumulator / accumulator_count;
Expand Down
2 changes: 1 addition & 1 deletion src/WallToolPaths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void WallToolPaths::removeSmallFillLines(std::vector<VariableWidthLines>& toolpa
for (size_t line_idx = 0; line_idx < inset.size(); line_idx++)
{
ExtrusionLine& line = inset[line_idx];
if(line.is_outer_wall())
if (line.is_outer_wall())
{
continue;
}
Expand Down

0 comments on commit a15471f

Please sign in to comment.