mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-29 11:41:20 -06:00
Removed more unused functions and fixed tests
This commit is contained in:
parent
132d170f73
commit
a950fbe0c2
7 changed files with 20 additions and 208 deletions
|
|
@ -5,8 +5,8 @@ use warnings;
|
|||
# a polygon is a closed polyline.
|
||||
use parent 'Slic3r::Polyline';
|
||||
|
||||
use Slic3r::Geometry qw(polygon_remove_parallel_continuous_edges
|
||||
polygon_remove_acute_vertices polygon_segment_having_point
|
||||
use Slic3r::Geometry qw(
|
||||
polygon_segment_having_point
|
||||
PI X1 X2 Y1 Y2 epsilon);
|
||||
|
||||
sub wkt {
|
||||
|
|
@ -14,19 +14,6 @@ sub wkt {
|
|||
return sprintf "POLYGON((%s))", join ',', map "$_->[0] $_->[1]", @$self;
|
||||
}
|
||||
|
||||
sub merge_continuous_lines {
|
||||
my $self = shift;
|
||||
|
||||
my $p = $self->pp;
|
||||
polygon_remove_parallel_continuous_edges($p);
|
||||
return __PACKAGE__->new(@$p);
|
||||
}
|
||||
|
||||
sub remove_acute_vertices {
|
||||
my $self = shift;
|
||||
polygon_remove_acute_vertices($self);
|
||||
}
|
||||
|
||||
sub grow {
|
||||
my $self = shift;
|
||||
return $self->split_at_first_point->grow(@_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue