mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Remove all id() and ordered_id() methods
This commit is contained in:
parent
1d04e15b63
commit
144a704e3b
4 changed files with 3 additions and 28 deletions
|
@ -1,6 +1,8 @@
|
|||
package Slic3r::ExtrusionLoop;
|
||||
use Moo;
|
||||
|
||||
use Slic3r::Geometry qw(same_point);
|
||||
|
||||
# the underlying Slic3r::Polygon objects holds the geometry
|
||||
has 'polygon' => (
|
||||
is => 'rw',
|
||||
|
@ -57,7 +59,7 @@ sub split_at {
|
|||
# find index of point
|
||||
my $i = -1;
|
||||
for (my $n = 0; $n <= $#{$self->polygon}; $n++) {
|
||||
if ($point->id eq $self->polygon->[$n]->id) {
|
||||
if (same_point($point, $self->polygon->[$n])) {
|
||||
$i = $n;
|
||||
last;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue