From 548b3014321c8a6e6efbbe68dc589bdcca6a0f40 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 9 Aug 2013 16:34:55 +0200 Subject: [PATCH] Offset projection of facets before the final union --- lib/Slic3r/TriangleMesh.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/TriangleMesh.pm b/lib/Slic3r/TriangleMesh.pm index c2e543467..5aa97c9a0 100644 --- a/lib/Slic3r/TriangleMesh.pm +++ b/lib/Slic3r/TriangleMesh.pm @@ -563,7 +563,9 @@ sub horizontal_projection { } $_->make_counter_clockwise for @f; # do this after scaling, as winding order might change while doing that - return union_ex(\@f, 1); + + # the offset factor was tuned using groovemount.stl + return union_ex([ offset(\@f, Slic3r::Geometry::scale 0.01) ], 1); } 1;