Skip to content

Commit caef8b8

Browse files
authored
Merge branch '5.10' into CURA-12369_extra-wipe-move-with-spiralize
2 parents edfd9d4 + 181c5d9 commit caef8b8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/support.cpp

+18
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <fstream> // ifstream.good()
99
#include <utility> // pair
1010

11+
#include <range/v3/algorithm/all_of.hpp>
1112
#include <range/v3/view/concat.hpp>
1213
#include <range/v3/view/drop.hpp>
1314
#include <range/v3/view/drop_last.hpp>
@@ -1013,6 +1014,23 @@ void AreaSupport::generateSupportAreasForMesh(
10131014
return;
10141015
}
10151016

1017+
if (ranges::all_of(
1018+
mesh.overhang_areas,
1019+
[](const Shape& overhang_area)
1020+
{
1021+
return overhang_area.empty();
1022+
})
1023+
&& ranges::all_of(
1024+
mesh.full_overhang_areas,
1025+
[](const Shape& overhang_area)
1026+
{
1027+
return overhang_area.empty();
1028+
}))
1029+
{
1030+
// Mesh has no overhang, skip support generation
1031+
return;
1032+
}
1033+
10161034
// Compute the areas that are disallowed by the X/Y distance.
10171035
std::vector<Shape> xy_disallowed_per_layer;
10181036
xy_disallowed_per_layer.resize(layer_count);

0 commit comments

Comments
 (0)