mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
Distinct extrusion role for support material interface
This commit is contained in:
parent
baefefc50d
commit
59f0e76da1
4 changed files with 6 additions and 4 deletions
|
@ -5,8 +5,8 @@ use warnings;
|
||||||
use parent qw(Exporter);
|
use parent qw(Exporter);
|
||||||
|
|
||||||
our @EXPORT_OK = qw(EXTR_ROLE_PERIMETER EXTR_ROLE_EXTERNAL_PERIMETER EXTR_ROLE_OVERHANG_PERIMETER
|
our @EXPORT_OK = qw(EXTR_ROLE_PERIMETER EXTR_ROLE_EXTERNAL_PERIMETER EXTR_ROLE_OVERHANG_PERIMETER
|
||||||
EXTR_ROLE_FILL EXTR_ROLE_SOLIDFILL EXTR_ROLE_TOPSOLIDFILL EXTR_ROLE_BRIDGE
|
EXTR_ROLE_FILL EXTR_ROLE_SOLIDFILL EXTR_ROLE_TOPSOLIDFILL EXTR_ROLE_GAPFILL EXTR_ROLE_BRIDGE
|
||||||
EXTR_ROLE_SKIRT EXTR_ROLE_SUPPORTMATERIAL EXTR_ROLE_GAPFILL);
|
EXTR_ROLE_SKIRT EXTR_ROLE_SUPPORTMATERIAL EXTR_ROLE_SUPPORTMATERIAL_INTERFACE);
|
||||||
our %EXPORT_TAGS = (roles => \@EXPORT_OK);
|
our %EXPORT_TAGS = (roles => \@EXPORT_OK);
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
@ -608,7 +608,7 @@ sub generate_toolpaths {
|
||||||
my $mm3_per_mm = $interface_flow->mm3_per_mm($layer->height);
|
my $mm3_per_mm = $interface_flow->mm3_per_mm($layer->height);
|
||||||
@loops = map Slic3r::ExtrusionPath->new(
|
@loops = map Slic3r::ExtrusionPath->new(
|
||||||
polyline => $_,
|
polyline => $_,
|
||||||
role => EXTR_ROLE_SUPPORTMATERIAL,
|
role => EXTR_ROLE_SUPPORTMATERIAL_INTERFACE,
|
||||||
mm3_per_mm => $mm3_per_mm,
|
mm3_per_mm => $mm3_per_mm,
|
||||||
width => $interface_flow->width,
|
width => $interface_flow->width,
|
||||||
height => $layer->height,
|
height => $layer->height,
|
||||||
|
@ -656,7 +656,7 @@ sub generate_toolpaths {
|
||||||
|
|
||||||
push @paths, map Slic3r::ExtrusionPath->new(
|
push @paths, map Slic3r::ExtrusionPath->new(
|
||||||
polyline => Slic3r::Polyline->new(@$_),
|
polyline => Slic3r::Polyline->new(@$_),
|
||||||
role => EXTR_ROLE_SUPPORTMATERIAL,
|
role => EXTR_ROLE_SUPPORTMATERIAL_INTERFACE,
|
||||||
mm3_per_mm => $mm3_per_mm,
|
mm3_per_mm => $mm3_per_mm,
|
||||||
width => $params->{flow}->width,
|
width => $params->{flow}->width,
|
||||||
height => $layer->height,
|
height => $layer->height,
|
||||||
|
|
|
@ -23,6 +23,7 @@ enum ExtrusionRole {
|
||||||
erGapFill,
|
erGapFill,
|
||||||
erSkirt,
|
erSkirt,
|
||||||
erSupportMaterial,
|
erSupportMaterial,
|
||||||
|
erSupportMaterialInterface,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Special flags describing loop */
|
/* Special flags describing loop */
|
||||||
|
|
|
@ -141,6 +141,7 @@ _constant()
|
||||||
EXTR_ROLE_GAPFILL = erGapFill
|
EXTR_ROLE_GAPFILL = erGapFill
|
||||||
EXTR_ROLE_SKIRT = erSkirt
|
EXTR_ROLE_SKIRT = erSkirt
|
||||||
EXTR_ROLE_SUPPORTMATERIAL = erSupportMaterial
|
EXTR_ROLE_SUPPORTMATERIAL = erSupportMaterial
|
||||||
|
EXTR_ROLE_SUPPORTMATERIAL_INTERFACE = erSupportMaterialInterface
|
||||||
PROTOTYPE:
|
PROTOTYPE:
|
||||||
CODE:
|
CODE:
|
||||||
RETVAL = ix;
|
RETVAL = ix;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue