mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-29 19:53:44 -06:00
Removed offset() method from Slic3r::Polygon because it only works with ccw polygons
This commit is contained in:
parent
4c41f6c462
commit
2f046799f2
5 changed files with 12 additions and 13 deletions
|
|
@ -95,11 +95,6 @@ sub area {
|
|||
return Slic3r::Geometry::Clipper::area($self);
|
||||
}
|
||||
|
||||
sub offset {
|
||||
my $self = shift;
|
||||
return map Slic3r::Polygon->new($_), Slic3r::Geometry::Clipper::offset([$self], @_);
|
||||
}
|
||||
|
||||
sub grow {
|
||||
my $self = shift;
|
||||
return $self->split_at_first_point->grow(@_);
|
||||
|
|
@ -147,7 +142,7 @@ sub is_printable {
|
|||
# detect them and we would be discarding them.
|
||||
my $p = $self->clone;
|
||||
$p->make_counter_clockwise;
|
||||
return $p->offset(-$width / 2) ? 1 : 0;
|
||||
return Slic3r::Geometry::Clipper::offset([$p], -$width / 2) ? 1 : 0;
|
||||
}
|
||||
|
||||
sub is_valid {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue