File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 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);
You can’t perform that action at this time.
0 commit comments