mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 04:54:08 -06:00
Optimization: use Boost.Geometry for point in polygon
This commit is contained in:
parent
f7be746599
commit
b414c50b68
2 changed files with 5 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue