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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2011-10-10 19:27:00 +0400
committerAlessandro Ranellucci <aar@cpan.org>2011-10-10 19:27:00 +0400
commitbca3abb7557bd3034be5361d7dc17d94f9edd8a8 (patch)
tree8f8371f90c61d6f2a74264e18774575b5f32e85c /lib/Slic3r/Print.pm
parent34681af6ae3b4ed50fe31265fbfb8ea63381fd83 (diff)
More fixes.
Diffstat (limited to 'lib/Slic3r/Print.pm')
-rw-r--r--lib/Slic3r/Print.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm
index 7de587c73..2cf9fd9c6 100644
--- a/lib/Slic3r/Print.pm
+++ b/lib/Slic3r/Print.pm
@@ -134,8 +134,13 @@ sub detect_surfaces_type {
if ($lower_layer) {
@bottom = $surface_difference->($layer->surfaces, $lower_layer->surfaces, 'bottom');
+ $_->contour->merge_continuous_lines for @bottom;
+
+ # merge_continuous_lines could return polylines with less than 3 points (thus invalid)
+ # actually, this shouldn't happen so it deserves further investigation
+ @bottom = grep $_->contour->is_valid, @bottom;
+
for (@bottom) {
- $_->contour->merge_continuous_lines;
$_->contour->remove_acute_vertices;
# okay, this is an Ugly Hack(tm) to avoid floating point math problems