Skip to content

Commit

Permalink
Keep consistency with code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Mar 7, 2024
1 parent c1be452 commit b326201
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions src/SkirtBrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,9 @@ Polygons SkirtBrim::getFirstLayerOutline(const int extruder_nr /* = -1 */)

for (int i_layer = layer_nr; i_layer < skirt_height; ++i_layer)
{
first_layer_outline = first_layer_outline.unionPolygons(storage_.getLayerOutlines(
i_layer,
/*include_support*/ true,
/*include_prime_tower*/ true,
true));
constexpr bool include_support = true;
constexpr bool include_prime_tower = true;
first_layer_outline = first_layer_outline.unionPolygons(storage_.getLayerOutlines(i_layer, include_support, include_prime_tower, true));
}

Polygons shields;
Expand Down Expand Up @@ -563,20 +561,19 @@ std::vector<Polygons> SkirtBrim::generateAllowedAreas(const std::vector<Polygons
{
// Gather models/support/prime tower areas separately to apply different margins
ExtruderOutlines& extruder_outlines = covered_area_by_extruder[extruder_nr];
extruder_outlines.models_outlines = storage_.getLayerOutlines(
layer_nr,
/*include_support*/ false,
/*include_prime_tower*/ false,
/*external_polys_only*/ false,
extruder_nr,
/*include_model*/ true);
extruder_outlines.supports_outlines = storage_.getLayerOutlines(
layer_nr,
/*include_support*/ true,
/*include_prime_tower*/ true,
/*external_polys_only*/ false,
extruder_nr,
/*include_model*/ false);
constexpr bool external_polys_only = false;
{
constexpr bool include_support = false;
constexpr bool include_prime_tower = false;
constexpr bool include_model = true;
extruder_outlines.models_outlines = storage_.getLayerOutlines(layer_nr, include_support, include_prime_tower, external_polys_only, extruder_nr, include_model);
}
{
constexpr bool include_support = true;
constexpr bool include_prime_tower = true;
constexpr bool include_model = false;
extruder_outlines.models_outlines = storage_.getLayerOutlines(layer_nr, include_support, include_prime_tower, external_polys_only, extruder_nr, include_model);
}
}
}
}
Expand Down

0 comments on commit b326201

Please sign in to comment.