Model extrusion threads as rectangles with semicircles at the end. Remove overlap_ratio setting. #109 #112

This commit is contained in:
Alessandro Ranellucci 2011-12-13 17:34:31 +01:00
parent 869cb48c1a
commit 56691c1dea
16 changed files with 43 additions and 57 deletions

View file

@ -32,7 +32,7 @@ sub is_printable {
# if no offset is possible, then polyline is not printable
my $p = $self->p;
@$p = reverse @$p if !Math::Clipper::is_counter_clockwise($p);
my $offsets = Math::Clipper::offset([$p], -(scale $Slic3r::flow_spacing / 2), $Slic3r::resolution * 100000, JT_MITER, 2);
my $offsets = Math::Clipper::offset([$p], -(scale $Slic3r::flow_width / 2), $Slic3r::resolution * 100000, JT_MITER, 2);
return @$offsets ? 1 : 0;
}