mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Use the faster polygon_multi_linestring_intersection()
This commit is contained in:
parent
ae201c8f41
commit
2963e54d21
4 changed files with 6 additions and 15 deletions
|
@ -115,10 +115,7 @@ sub clip_with_expolygon {
|
|||
my $self = shift;
|
||||
my ($expolygon) = @_;
|
||||
|
||||
my $result = Boost::Geometry::Utils::polygon_linestring_intersection(
|
||||
$expolygon->boost_polygon,
|
||||
$self->boost_linestring,
|
||||
);
|
||||
my $result = Boost::Geometry::Utils::polygon_multi_linestring_intersection($expolygon, [$self]);
|
||||
bless $_, 'Slic3r::Polyline' for @$result;
|
||||
bless $_, 'Slic3r::Point' for map @$_, @$result;
|
||||
return @$result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue