From 2cc5b3e3354fa4b13aa2f24abe0141ef995a6462 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Sat, 26 Apr 2025 12:38:13 +0800 Subject: [PATCH] Make sure exclusion area is correctly rendered even in wrong orientation --- src/slic3r/GUI/PartPlate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index b44824111a..f08211e7c3 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -2624,6 +2624,8 @@ void PartPlate::generate_exclude_polygon(ExPolygon &exclude_polygon) exclude_polygon.contour.append({ scale_(p(0)), scale_(p(1)) }); } } + + exclude_polygon.contour.make_counter_clockwise(); } bool PartPlate::set_shape(const Pointfs& shape, const Pointfs& exclude_areas, Vec2d position, float height_to_lid, float height_to_rod)