File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 8
8
#include < fstream> // ifstream.good()
9
9
#include < utility> // pair
10
10
11
+ #include < range/v3/algorithm/all_of.hpp>
11
12
#include < range/v3/view/concat.hpp>
12
13
#include < range/v3/view/drop.hpp>
13
14
#include < range/v3/view/drop_last.hpp>
@@ -1013,6 +1014,23 @@ void AreaSupport::generateSupportAreasForMesh(
1013
1014
return ;
1014
1015
}
1015
1016
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
+
1016
1034
// Compute the areas that are disallowed by the X/Y distance.
1017
1035
std::vector<Shape> xy_disallowed_per_layer;
1018
1036
xy_disallowed_per_layer.resize (layer_count);
You can’t perform that action at this time.
0 commit comments