Got rid of Math::Geometry::Planar

This commit is contained in:
Alessandro Ranellucci 2011-10-06 12:39:58 +02:00
parent e2d2574b8b
commit bfd1d0e1dd
6 changed files with 11 additions and 62 deletions

View file

@ -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;