mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Customizable overlap ratio (it defaults to 0.15 now)
This commit is contained in:
@@ -3,7 +3,7 @@ use Moo;
|
||||
|
||||
extends 'Slic3r::Fill::Base';
|
||||
|
||||
use Slic3r::Geometry qw(bounding_box X1 Y1 X2 Y2);
|
||||
use Slic3r::Geometry qw(scale bounding_box X1 Y1 X2 Y2);
|
||||
use XXX;
|
||||
|
||||
sub multiplier () { 1 }
|
||||
@@ -27,7 +27,7 @@ sub fill_surface {
|
||||
my $rotate_vector = $self->infill_direction($surface);
|
||||
$self->rotate_points($expolygon, $rotate_vector);
|
||||
|
||||
my $distance_between_lines = $params{flow_width} / $Slic3r::resolution / $params{density} * $self->multiplier;
|
||||
my $distance_between_lines = scale $params{flow_spacing} / $params{density} * $self->multiplier;
|
||||
my $bounding_box = [ bounding_box(map @$_, $expolygon) ];
|
||||
my $bounding_box_polygon = Slic3r::Polygon->new([
|
||||
[ $bounding_box->[X1], $bounding_box->[Y1] ],
|
||||
|
||||
Reference in New Issue
Block a user