mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 02:52:10 +00:00
Detection of optimal infill direction for bridges. Includes many fixes and improvements.
This commit is contained in:
@@ -80,8 +80,10 @@ sub parse_file {
|
||||
$vertex->[$_] = ($Slic3r::scale * $vertex->[$_] / $Slic3r::resolution) + $shift[$_]
|
||||
for X,Y,Z;
|
||||
|
||||
# round Z coordinates; XY will be rounded automatically with coercion
|
||||
$vertex->[Z] = sprintf('%.0f', $vertex->[Z]);
|
||||
# round Z coordinates to the nearest multiple of layer height
|
||||
# XY will be rounded automatically to integers with coercion
|
||||
$vertex->[Z] = sprintf('%.0f', $vertex->[Z] * $Slic3r::resolution / $Slic3r::layer_height)
|
||||
* $Slic3r::layer_height / $Slic3r::resolution;
|
||||
}
|
||||
|
||||
foreach my $copy (@copies) {
|
||||
@@ -92,7 +94,7 @@ sub parse_file {
|
||||
$self->_facet($print, $normal, @copy_vertices);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $print;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user