Implemented avoid_crossing_perimeters with VisiLibity
This commit is contained in:
parent
a02a7f1a0f
commit
5fe5021fd7
19 changed files with 6216 additions and 13 deletions
|
@ -111,8 +111,8 @@ sub change_layer {
|
|||
$self->_layer_islands($layer->islands);
|
||||
$self->_upper_layer_islands($layer->upper_layer ? $layer->upper_layer->islands : []);
|
||||
if ($self->print_config->avoid_crossing_perimeters) {
|
||||
$self->layer_mp(Slic3r::GCode::MotionPlanner->new(
|
||||
islands => union_ex([ map @$_, @{$layer->slices} ], 1),
|
||||
$self->layer_mp(Slic3r::MotionPlanner->new(
|
||||
union_ex([ map @$_, @{$layer->slices} ], 1),
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -909,10 +909,7 @@ sub write_gcode {
|
|||
}
|
||||
}
|
||||
}
|
||||
$gcodegen->external_mp(Slic3r::GCode::MotionPlanner->new(
|
||||
islands => union_ex([ map @$_, @islands ]),
|
||||
internal => 0,
|
||||
));
|
||||
$gcodegen->external_mp(Slic3r::MotionPlanner->new(union_ex([ map @$_, @islands ])));
|
||||
}
|
||||
|
||||
# calculate wiping points if needed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue