mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
Detection of optimal infill direction for bridges. Includes many fixes and improvements.
This commit is contained in:
parent
1cb515a8e5
commit
743f2abcf2
18 changed files with 445 additions and 68 deletions
|
@ -19,6 +19,29 @@ has 'surface_type' => (
|
|||
#isa => enum([qw(internal internal-solid bottom top)]),
|
||||
);
|
||||
|
||||
sub cast_from_polygon {
|
||||
my $class = shift;
|
||||
my ($polygon, %args) = @_;
|
||||
|
||||
return $class->new(
|
||||
contour => Slic3r::Polyline::Closed->cast($polygon),
|
||||
%args,
|
||||
);
|
||||
}
|
||||
|
||||
sub cast_from_expolygon {
|
||||
my $class = shift;
|
||||
my ($expolygon, %args) = @_;
|
||||
|
||||
return $class->new(
|
||||
contour => Slic3r::Polyline::Closed->cast($expolygon->{outer}),
|
||||
holes => [
|
||||
map Slic3r::Polyline::Closed->cast($_), @{$expolygon->{holes}}
|
||||
],
|
||||
%args,
|
||||
);
|
||||
}
|
||||
|
||||
sub add_hole {
|
||||
my $self = shift;
|
||||
my ($hole) = @_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue