mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Customizable overlap ratio (it defaults to 0.15 now)
This commit is contained in:
parent
9f6be233f8
commit
d9a70ea80d
15 changed files with 67 additions and 42 deletions
|
@ -1,6 +1,8 @@
|
|||
package Slic3r::Extruder;
|
||||
use Moo;
|
||||
|
||||
use Slic3r::Geometry qw(scale);
|
||||
|
||||
has 'layer' => (is => 'rw');
|
||||
has 'shift_x' => (is => 'ro', default => sub {0} );
|
||||
has 'shift_y' => (is => 'ro', default => sub {0} );
|
||||
|
@ -75,7 +77,7 @@ sub extrude_loop {
|
|||
my $extrusion_path = $loop->split_at($start_at);
|
||||
|
||||
# clip the path to avoid the extruder to get exactly on the first point of the loop
|
||||
$extrusion_path->clip_end($Slic3r::flow_width / $Slic3r::resolution);
|
||||
$extrusion_path->clip_end(scale $Slic3r::flow_spacing);
|
||||
|
||||
# extrude along the path
|
||||
return $self->extrude($extrusion_path, $description);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue