Skip to content

Commit

Permalink
Fixed prime tower overlapping support
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Oct 13, 2023
1 parent 23080f9 commit 01c239b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PrimeTower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ void PrimeTower::addToGcode_denseInfill(LayerPlan& gcode_layer, const size_t ext

void PrimeTower::subtractFromSupport(SliceDataStorage& storage)
{
const Polygons outside_polygon = outer_poly.getOutsidePolygons();
AABB outside_polygon_boundary_box(outside_polygon);
for (size_t layer = 0; layer <= (size_t)storage.max_print_height_second_to_last_extruder + 1 && layer < storage.support.supportLayers.size(); layer++)
{
const Polygons outside_polygon = getOuterPoly(layer).getOutsidePolygons();
AABB outside_polygon_boundary_box(outside_polygon);
SupportLayer& support_layer = storage.support.supportLayers[layer];
// take the differences of the support infill parts and the prime tower area
support_layer.excludeAreasFromSupportInfillAreas(outside_polygon, outside_polygon_boundary_box);
Expand Down

0 comments on commit 01c239b

Please sign in to comment.