Removed clip_with_polygon() and clip_with_expolygon()

This commit is contained in:
Alessandro Ranellucci 2013-11-21 18:16:03 +01:00
parent ac88fbcbb0
commit 3aef663f7f
4 changed files with 4 additions and 39 deletions

View file

@ -35,21 +35,6 @@ sub simplify {
return __PACKAGE__->new(@$simplified);
}
sub clip_with_polygon {
my $self = shift;
my ($polygon) = @_;
return $self->clip_with_expolygon(Slic3r::ExPolygon->new($polygon));
}
sub clip_with_expolygon {
my $self = shift;
my ($expolygon) = @_;
my $result = Boost::Geometry::Utils::polygon_multi_linestring_intersection($expolygon->pp, [$self->pp]);
return map { __PACKAGE__->new(@$_) } @$result;
}
sub bounding_box {
my $self = shift;
return Slic3r::Geometry::BoundingBox->new_from_points($self);