mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Got rid of Math::Geometry::Planar
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package Slic3r::Surface;
|
||||
use Moo;
|
||||
|
||||
use Math::Geometry::Planar;
|
||||
|
||||
has 'contour' => (
|
||||
is => 'ro',
|
||||
#isa => 'Slic3r::Polyline::Closed',
|
||||
@@ -42,14 +40,6 @@ sub encloses_point {
|
||||
return 1;
|
||||
}
|
||||
|
||||
sub mgp_polygon {
|
||||
my $self = shift;
|
||||
|
||||
my $p = Math::Geometry::Planar->new;
|
||||
$p->polygons([ $self->contour->p, map($_->p, @{ $self->holes }) ]);
|
||||
return $p;
|
||||
}
|
||||
|
||||
sub clipper_polygon {
|
||||
my $self = shift;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user