mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Optimization: use Boost.Geometry for point in polygon
This commit is contained in:
@@ -65,7 +65,7 @@ sub point_on_segment {
|
||||
sub encloses_point {
|
||||
my $self = shift;
|
||||
my ($point) = @_;
|
||||
return point_in_polygon($point, $self);
|
||||
return Boost::Geometry::Utils::point_covered_by_polygon($point, [$self]);
|
||||
}
|
||||
|
||||
sub area {
|
||||
|
||||
Reference in New Issue
Block a user