Print solid infill without cutting an internal surface under small regions such as pillars. #39

This commit is contained in:
Alessandro Ranellucci 2011-11-16 16:35:20 +01:00
parent 47c0da8110
commit 8aca717209
4 changed files with 24 additions and 7 deletions

View file

@ -51,9 +51,15 @@ sub offset {
$miterLimit ||= 2;
my $offsets = Math::Clipper::offset($self, $distance, $scale, $joinType, $miterLimit);
return @$offsets;
}
sub offset_ex {
my $self = shift;
my @offsets = $self->offset(@_);
# apply holes to the right contours
return @{ union_ex($offsets) };
return @{ union_ex(\@offsets) };
}
sub encloses_point {