Rewrite avoid_crossing_perimeters() to fix a regression and get better performance by choosing regular points along contours. #1531

This commit is contained in:
Alessandro Ranellucci 2013-12-22 18:47:39 +01:00
parent ca16567ba9
commit e403dc16ae
3 changed files with 251 additions and 220 deletions

View file

@ -456,7 +456,7 @@ sub _plan {
# append the actual path and return
$self->speed('travel');
# use G1 because we rely on paths being straight (G0 may make round paths)
$gcode .= join '', map $self->G1($_->[B], undef, 0, $comment || ""), @travel;
$gcode .= join '', map $self->G1($_->b, undef, 0, $comment || ""), @travel;
return $gcode;
}