Have Clipper.pm only return ExPolygon::XS objects

This commit is contained in:
Alessandro Ranellucci committed 2013-07-07 15:17:09 +02:00
1 parent 9dc1a3c69d
commit a1e4bda670
8 files changed
+22 -16

No files matched your search

+4 -1
View File
@@ -32,6 +32,9 @@ sub clone {
Storable::dclone($_[0])
}
# no-op for legacy with ::XS
sub arrayref { $_[0] }
sub threadsafe_clone {
my $self = shift;
return (ref $self)->new(map $_->threadsafe_clone, @$self);
@@ -142,7 +145,7 @@ sub clip_line {
my $self = shift;
my ($line) = @_; # line must be a Slic3r::Line object
return Boost::Geometry::Utils::polygon_multi_linestring_intersection($self, [$line]);
return Boost::Geometry::Utils::polygon_multi_linestring_intersection($self->arrayref, [$line]);
}
sub simplify {