mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -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
|
@ -92,10 +92,7 @@ sub BUILD {
|
|||
|
||||
my $intersects = sub {
|
||||
my ($polygon, $line) = @_;
|
||||
@{Boost::Geometry::Utils::polygon_linestring_intersection(
|
||||
$polygon->boost_polygon,
|
||||
$line->boost_linestring,
|
||||
)} > 0;
|
||||
@{Boost::Geometry::Utils::polygon_multi_linestring_intersection([$polygon], [$line])} > 0;
|
||||
};
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue