From e5fe04ea7a2c2aa607ac2f27851579259f1a5c23 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 12 Aug 2013 19:10:40 +0200 Subject: [PATCH] Make sure teeth are not too tight --- lib/Slic3r/Print/Object.pm | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/Slic3r/Print/Object.pm b/lib/Slic3r/Print/Object.pm index 29208af130..8e2e847c4e 100644 --- a/lib/Slic3r/Print/Object.pm +++ b/lib/Slic3r/Print/Object.pm @@ -826,14 +826,10 @@ sub generate_support_material { } # shape of contact area - my $contact_loops = 1; - my $circle_distance = 3 * $flow->scaled_width; - my $circle; - { - # TODO: make sure teeth between circles are compatible with support material flow - my $r = 1.5 * $flow->scaled_width; - $circle = Slic3r::Polygon->new(map [ $r * cos $_, $r * sin $_ ], (5*PI/3, 4*PI/3, PI, 2*PI/3, PI/3, 0)); - } + my $contact_loops = 1; + my $circle_radius = 1.5 * $flow->scaled_width; + my $circle_distance = 3 * $circle_radius; + my $circle = Slic3r::Polygon->new(map [ $circle_radius * cos $_, $circle_radius * sin $_ ], (5*PI/3, 4*PI/3, PI, 2*PI/3, PI/3, 0)); # determine contact areas my %contact = (); # contact_z => [ polygons ]