mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 21:46:30 +01:00
Got rid of Math::Geometry::Planar
This commit is contained in:
1 parent
e2d2574b8b
commit
bfd1d0e1dd
6 files changed
+11
-62
No files matched your search
@@ -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