Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupermerill <merill@free.fr>2020-05-13 02:37:48 +0300
committersupermerill <merill@free.fr>2020-05-13 02:39:30 +0300
commit3d5ddd60b4a2fa217984be41f0f9d9e4b07b8dad (patch)
treec5c566b78ed9b4b49c6553433d164b4d6aa9b0b2 /src/libslic3r/PerimeterGenerator.hpp
parent1da021b352daaa561af7153dfbd0d92fe8547576 (diff)
#206 reverse direction on overhang overhaul:
- now has a setting & a threshold - when reverse_direction trigger on the external loop, it also trigger for all other loops on this side (so, no more U-turn) - do not depends on extra_perimeter anymore - now extra_perimeters split into extra_perimeters (the old useless one) and extra_perimeters_overhangs - reordering settings in the tab.
Diffstat (limited to 'src/libslic3r/PerimeterGenerator.hpp')
-rw-r--r--src/libslic3r/PerimeterGenerator.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libslic3r/PerimeterGenerator.hpp b/src/libslic3r/PerimeterGenerator.hpp
index a3e5a3c8e..070b03e50 100644
--- a/src/libslic3r/PerimeterGenerator.hpp
+++ b/src/libslic3r/PerimeterGenerator.hpp
@@ -29,7 +29,7 @@ public:
// Contours are CCW oriented, holes are CW oriented.
bool is_contour;
//overhang may need to be reversed
- bool is_overhang;
+ bool is_steep_overhang;
// Depth in the hierarchy. External perimeter has depth = 0. An external perimeter could be both a contour and a hole.
unsigned short depth;
// Children contour, may be both CCW and CW oriented (outer contours or holes).
@@ -37,9 +37,9 @@ public:
PerimeterGeneratorLoop(Polygon polygon, unsigned short depth, bool is_contour) :
- polygon(polygon), is_contour(is_contour), depth(depth), is_overhang(false) {}
- PerimeterGeneratorLoop(Polygon polygon, unsigned short depth, bool is_contour, bool is_overhang) :
- polygon(polygon), is_contour(is_contour), depth(depth), is_overhang(is_overhang) {}
+ polygon(polygon), is_contour(is_contour), depth(depth), is_steep_overhang(false) {}
+ PerimeterGeneratorLoop(Polygon polygon, unsigned short depth, bool is_contour, bool is_steep_overhang) :
+ polygon(polygon), is_contour(is_contour), depth(depth), is_steep_overhang(is_steep_overhang) {}
// External perimeter. It may be CCW or CW oriented (outer contour or hole contour).
bool is_external() const { return this->depth == 0; }
// An island, which may have holes, but it does not have another internal island.