mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 21:14:01 -06:00
New --first-layer-extrusion-width option. #385
This commit is contained in:
parent
d412820733
commit
8a031fe501
13 changed files with 117 additions and 76 deletions
|
@ -103,6 +103,7 @@ sub subdivide {
|
|||
# returns false if the polyline is too tight to be printed
|
||||
sub is_printable {
|
||||
my $self = shift;
|
||||
my ($flow_width) = @_;
|
||||
|
||||
# try to get an inwards offset
|
||||
# for a distance equal to half of the extrusion width;
|
||||
|
@ -113,7 +114,7 @@ sub is_printable {
|
|||
# detect them and we would be discarding them.
|
||||
my $p = $self->clone;
|
||||
$p->make_counter_clockwise;
|
||||
return $p->offset(scale $Slic3r::flow_width / 2) ? 1 : 0;
|
||||
return $p->offset(scale($flow_width || $Slic3r::flow_width) / 2) ? 1 : 0;
|
||||
}
|
||||
|
||||
sub is_valid {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue