Skip to content

Commit

Permalink
Proof-of-concept. Attempt to fix newly introduced small extrusions.
Browse files Browse the repository at this point in the history
done as part of CURA-11041
  • Loading branch information
rburema committed Sep 22, 2023
1 parent 16d1a84 commit 3820d3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3331,10 +3331,14 @@ bool FffGcodeWriter::addSupportRoofsToGCode(const SliceDataStorage& storage, Lay
const auto support_top_distance = Application::getInstance().current_slice->scene.current_mesh_group->settings.get<coord_t>("support_top_distance");
const coord_t leftover_support_distance = support_top_distance % layer_height;

auto infill_outlines = { support_layer.support_roof.difference(support_layer.support_fractional_roof_top), support_layer.support_fractional_roof_top };
std::vector<Polygons> infill_outlines =
{
Simplify(roof_extruder.settings).polygon(support_layer.support_roof.difference(support_layer.support_fractional_roof_top)),
Simplify(roof_extruder.settings).polygon(support_layer.support_fractional_roof_top)
};
auto current_roof_config = gcode_layer.configs_storage.support_roof_config; // copy!
bool generated_something = false;
for (auto infill_outline : infill_outlines)
for (auto& infill_outline : infill_outlines)
{
Polygons wall;
// make sure there is a wall if this is on the first layer
Expand Down

0 comments on commit 3820d3b

Please sign in to comment.