mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-14 19:22:53 +02:00
Use the faster polygon_multi_linestring_intersection()
This commit is contained in:
1 parent
ae201c8f41
commit
2963e54d21
4 files changed
+6
-15
No files matched your search
@@ -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;
|
||||
};
|
||||
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user