Ported some minor methods to XS

This commit is contained in:
Alessandro Ranellucci committed 2014-11-15 23:06:15 +01:00
1 parent 379cde30e2
commit 28466750e6
9 files changed
+58 -42

No files matched your search

+1 -9
View File
@@ -5,15 +5,7 @@ use warnings;
# a polygon is a closed polyline.
use parent 'Slic3r::Polyline';
use Slic3r::Geometry qw(
polygon_segment_having_point
PI X1 X2 Y1 Y2 epsilon scaled_epsilon);
use Slic3r::Geometry::Clipper qw(intersection_pl);
sub wkt {
my $self = shift;
return sprintf "POLYGON((%s))", join ',', map "$_->[0] $_->[1]", @$self;
}
use Slic3r::Geometry qw(PI);
sub dump_perl {
my $self = shift;