mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 18:42:24 +00:00
Collect undetected lines (caused by dirty or non-manifold models), warn the user, post debug info. Includes some further ExPolygon refactoring.
This commit is contained in:
@@ -36,16 +36,13 @@ sub cast_from_expolygon {
|
||||
my $class = shift;
|
||||
my ($expolygon, %args) = @_;
|
||||
|
||||
if (ref $expolygon ne 'HASH') {
|
||||
use XXX; ZZZ $expolygon if ref $expolygon eq 'ARRAY';
|
||||
$expolygon = $expolygon->clipper_expolygon;
|
||||
if (ref $expolygon eq 'HASH') {
|
||||
$expolygon = Slic3r::ExPolygon->new($expolygon);
|
||||
}
|
||||
|
||||
return $class->new(
|
||||
contour => Slic3r::Polyline::Closed->cast($expolygon->{outer}),
|
||||
holes => [
|
||||
map Slic3r::Polyline::Closed->cast($_), @{$expolygon->{holes}}
|
||||
],
|
||||
contour => $expolygon->contour->closed_polyline,
|
||||
holes => [ map $_->closed_polyline, $expolygon->holes ],
|
||||
%args,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user