Skip to content

Commit

Permalink
Remove interaction between briding and seam overhang
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Oct 18, 2024
1 parent 03de538 commit b0cf410
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/LayerPlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ class LayerPlan : public NoCopy
void setSeamOverhangMask(const Shape& polys);

/*!
* Get the areas that are considered having air below, which is a union between bridge and overhang masks
* Get the seam overhang mask, which contains the areas where we don't want to place the seam because they are overhanding
*/
Shape getAirBelowMask() const;
const Shape& getSeamOverhangMask() const;

/*!
* Set roofing_mask.
Expand Down
2 changes: 1 addition & 1 deletion src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3149,7 +3149,7 @@ bool FffGcodeWriter::processInsets(
disallowed_areas_for_seams,
scarf_seam,
smooth_speed,
gcode_layer.getAirBelowMask());
gcode_layer.getSeamOverhangMask());
added_something |= wall_orderer.addToLayer();
}
return added_something;
Expand Down
6 changes: 3 additions & 3 deletions src/LayerPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ void LayerPlan::writeGCode(GCodeExport& gcode)

for (const auto& reversed_chunk : paths | ranges::views::enumerate | ranges::views::reverse
| ranges::views::chunk_by(
[](const auto&path_a, const auto&path_b)
[](const auto& path_a, const auto& path_b)
{
return (! std::get<1>(path_a).isTravelPath()) || std::get<1>(path_b).isTravelPath();
}))
Expand Down Expand Up @@ -3044,9 +3044,9 @@ void LayerPlan::setSeamOverhangMask(const Shape& polys)
seam_overhang_mask_ = polys;
}

Shape LayerPlan::getAirBelowMask() const
const Shape& LayerPlan::getSeamOverhangMask() const
{
return bridge_wall_mask_.unionPolygons(seam_overhang_mask_);
return seam_overhang_mask_;
}

void LayerPlan::setRoofingMask(const Shape& polys)
Expand Down

0 comments on commit b0cf410

Please sign in to comment.