Bugfix: some thin walls still gave a fatal error. #416

This commit is contained in:
Alessandro Ranellucci 2012-06-07 12:21:33 +02:00
parent 0226039dfb
commit 00c6b1bdf8

View File

@ -53,4 +53,18 @@ sub split_at_first_point {
return $self->split_at($self->polygon->[0]);
}
# although a loop doesn't have endpoints, this method is provided to allow
# ExtrusionLoop objects to be added to an ExtrusionPath::Collection and
# sorted by the ->shortest_path() method
sub endpoints {
my $self = shift;
return ($self->polygon->[0], $self->polygon->[-1]);
}
# provided for ExtrusionPath::Collection->shortest_path()
sub points {
my $self = shift;
return $self->polygon;
}
1;