mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 21:58:03 -06:00
Fix regression in start perimeters at non-overhangs. #1442
This commit is contained in:
parent
9a51964e98
commit
a88ce0cb5e
3 changed files with 17 additions and 16 deletions
|
@ -29,18 +29,18 @@ sub clip_with_expolygon {
|
|||
|
||||
sub intersect_expolygons {
|
||||
my $self = shift;
|
||||
my ($expolygons) = @_;
|
||||
my ($expolygons_pp) = @_;
|
||||
|
||||
return map $self->clone(polyline => Slic3r::Polyline->new(@$_)),
|
||||
@{Boost::Geometry::Utils::multi_polygon_multi_linestring_intersection([ map $_->pp, @$expolygons ], [$self->pp])};
|
||||
@{Boost::Geometry::Utils::multi_polygon_multi_linestring_intersection($expolygons_pp, [$self->pp])};
|
||||
}
|
||||
|
||||
sub subtract_expolygons {
|
||||
my $self = shift;
|
||||
my ($expolygons) = @_;
|
||||
my ($expolygons_pp) = @_;
|
||||
|
||||
return map $self->clone(polyline => Slic3r::Polyline->new(@$_)),
|
||||
@{Boost::Geometry::Utils::multi_linestring_multi_polygon_difference([$self->pp], [ map $_->pp, @$expolygons ])};
|
||||
@{Boost::Geometry::Utils::multi_linestring_multi_polygon_difference([$self->pp], $expolygons_pp)};
|
||||
}
|
||||
|
||||
sub simplify {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue