Use the faster polygon_multi_linestring_intersection()

This commit is contained in:
Alessandro Ranellucci 2013-01-28 00:32:19 +01:00
parent ae201c8f41
commit 2963e54d21
4 changed files with 6 additions and 15 deletions

View file

@ -153,10 +153,7 @@ sub clip_line {
my $self = shift;
my ($line) = @_; # line must be a Slic3r::Line object
return Boost::Geometry::Utils::polygon_linestring_intersection(
$self->boost_polygon,
$line->boost_linestring,
);
return Boost::Geometry::Utils::polygon_multi_linestring_intersection($self, [$line]);
}
sub simplify {