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 Jan 17, 2024
1 parent b3ac3c3 commit 8a3b68f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/TreeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ void TreeSupport::generateBranchAreas(
}

std::vector<Polygons> linear_inserts(linear_data.size());
const size_t progress_inserts_check_interval = std::max(linear_data.size() / progress_report_steps,size_t(1));
const size_t progress_inserts_check_interval = std::max(linear_data.size() / progress_report_steps, size_t(1));

std::mutex critical_sections;
cura::parallel_for<size_t>(
Expand Down Expand Up @@ -1924,11 +1924,8 @@ void TreeSupport::dropNonGraciousAreas(
[&](const size_t idx)
{
TreeSupportElement* elem = linear_data[idx].second;
bool non_gracious_model_contact
= ! elem->to_model_gracious_
&& ! inverse_tree_order.count(elem)
&& linear_data[idx].first > 0
&& ! elem->to_buildplate_; // If an element has no child, it connects to whatever is below as no support further down for it will exist.
bool non_gracious_model_contact = ! elem->to_model_gracious_ && ! inverse_tree_order.count(elem) && linear_data[idx].first > 0
&& ! elem->to_buildplate_; // If an element has no child, it connects to whatever is below as no support further down for it will exist.
if (non_gracious_model_contact)
{
Polygons rest_support = layer_tree_polygons[linear_data[idx].first][elem].intersection(volumes_.getAccumulatedPlaceable0(linear_data[idx].first));
Expand Down

0 comments on commit 8a3b68f

Please sign in to comment.