mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 20:02:02 +08:00
SupportMaterial operates in angle, underling XS Fill operates in radians. Convert degrees->radians
Fixes #3861
This commit is contained in:
parent
075adca8bb
commit
1857bf6391
@ -722,7 +722,7 @@ sub generate_toolpaths {
|
|||||||
|
|
||||||
# interface and contact infill
|
# interface and contact infill
|
||||||
if (@$interface || @$contact_infill) {
|
if (@$interface || @$contact_infill) {
|
||||||
$fillers{interface}->set_angle($interface_angle);
|
$fillers{interface}->set_angle(deg2rad($interface_angle));
|
||||||
$fillers{interface}->set_min_spacing($_interface_flow->spacing);
|
$fillers{interface}->set_min_spacing($_interface_flow->spacing);
|
||||||
|
|
||||||
# find centerline of the external loop
|
# find centerline of the external loop
|
||||||
@ -772,7 +772,7 @@ sub generate_toolpaths {
|
|||||||
# support or flange
|
# support or flange
|
||||||
if (@$base) {
|
if (@$base) {
|
||||||
my $filler = $fillers{support};
|
my $filler = $fillers{support};
|
||||||
$filler->set_angle($angles[ ($layer_id) % @angles ]);
|
$filler->set_angle(deg2rad($angles[ ($layer_id) % @angles ]));
|
||||||
|
|
||||||
# We don't use $base_flow->spacing because we need a constant spacing
|
# We don't use $base_flow->spacing because we need a constant spacing
|
||||||
# value that guarantees that all layers are correctly aligned.
|
# value that guarantees that all layers are correctly aligned.
|
||||||
@ -789,7 +789,7 @@ sub generate_toolpaths {
|
|||||||
# base flange
|
# base flange
|
||||||
if ($layer_id == 0) {
|
if ($layer_id == 0) {
|
||||||
$filler = $fillers{interface};
|
$filler = $fillers{interface};
|
||||||
$filler->set_angle($self->object_config->support_material_angle + 90);
|
$filler->set_angle(deg2rad($self->object_config->support_material_angle + 90));
|
||||||
$density = 0.5;
|
$density = 0.5;
|
||||||
$base_flow = $self->first_layer_flow;
|
$base_flow = $self->first_layer_flow;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user