mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-28 11:11:16 -06:00
Got rid of Math::Geometry::Planar
This commit is contained in:
parent
e2d2574b8b
commit
bfd1d0e1dd
6 changed files with 11 additions and 62 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue