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 Oct 17, 2023
1 parent bd1b634 commit 42b3a71
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 10 additions & 3 deletions include/sliceDataStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,23 @@ class SupportLayer
*/
void excludeAreasFromSupportInfillAreas(const Polygons& exclude_polygons, const AABB& exclude_polygons_boundary_box);

/* Fill up the infill parts for the support with the given support polygons. The support polygons will be split into parts. This also takes into account fractional-height support layers.
/* Fill up the infill parts for the support with the given support polygons. The support polygons will be split into parts. This also takes into account fractional-height
* support layers.
*
* \param layer_nr Current layer index.
* \param support_fill_per_layer All of the (infill) support (since the layer above might be needed).
* \param support_line_width Line width of the support extrusions.
* \param wall_line_count Wall-line count around the fill.
* \param grow_layer_above (optional, default to 0) In cases where support shrinks per layer up, an appropriate offset may be nescesary.
* \param unionAll (optional, default to false) Wether to 'union all' for the split into parts bit.
* \param unionAll (optional, default to false) Wether to 'union all' for the split into parts bit.
*/
void fillInfillParts(const LayerIndex layer_nr, const std::vector<Polygons>& support_fill_per_layer, const coord_t support_line_width, const coord_t wall_line_count, const coord_t grow_layer_above = 0, const bool unionAll = false);
void fillInfillParts(
const LayerIndex layer_nr,
const std::vector<Polygons>& support_fill_per_layer,
const coord_t support_line_width,
const coord_t wall_line_count,
const coord_t grow_layer_above = 0,
const bool unionAll = false);
};

class SupportStorage
Expand Down
5 changes: 3 additions & 2 deletions src/TreeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2226,8 +2226,9 @@ void TreeSupport::finalizeInterfaceAndSupportAreas(std::vector<Polygons>& suppor
support_layer_storage[layer_idx] = support_layer_storage[layer_idx].difference(floor_layer.offset(10)); // Subtract the support floor from the normal support.
}

constexpr bool convert_every_part = true; // Convert every part into a PolygonsPart for the support.
storage.support.supportLayers[layer_idx].fillInfillParts(layer_idx, support_layer_storage, config.support_line_width, config.support_wall_count, config.maximum_move_distance, convert_every_part);
constexpr bool convert_every_part = true; // Convert every part into a PolygonsPart for the support.
storage.support.supportLayers[layer_idx]
.fillInfillParts(layer_idx, support_layer_storage, config.support_line_width, config.support_wall_count, config.maximum_move_distance, convert_every_part);

{
std::lock_guard<std::mutex> critical_section_progress(critical_sections);
Expand Down
3 changes: 2 additions & 1 deletion src/TreeSupportTipGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,8 @@ void TreeSupportTipGenerator::generateTips(
{
if (use_fake_roof)
{
storage.support.supportLayers[layer_idx].fillInfillParts(layer_idx, support_roof_drawn, config.support_line_width, support_roof_line_distance, config.maximum_move_distance);
storage.support.supportLayers[layer_idx]
.fillInfillParts(layer_idx, support_roof_drawn, config.support_line_width, support_roof_line_distance, config.maximum_move_distance);
placed_support_lines_support_areas[layer_idx].add(TreeSupportUtils::generateSupportInfillLines(
support_roof_drawn[layer_idx],
config,
Expand Down

0 comments on commit 42b3a71

Please sign in to comment.