mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 09:02:53 +00:00
Some code cleanup in MotionPlanner
This commit is contained in:
@@ -172,4 +172,10 @@ sub split_at_first_point {
|
||||
return $self->split_at_index(0);
|
||||
}
|
||||
|
||||
sub intersects_line {
|
||||
my $self = shift;
|
||||
my ($line) = @_;
|
||||
return @{Boost::Geometry::Utils::polygon_multi_linestring_intersection([$self], [$line])} > 0;
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user