mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
Bugfix: only_retract_when_crossing_perimeters was almost not working. #680
This commit is contained in:
parent
e61055774f
commit
87912cb3b0
2 changed files with 4 additions and 2 deletions
|
@ -20,6 +20,7 @@ our @EXPORT_OK = qw(
|
|||
shortest_path collinear scale unscale merge_collinear_lines
|
||||
rad2deg_dir bounding_box_center line_intersects_any douglas_peucker
|
||||
polyline_remove_short_segments normal triangle_normal polygon_is_convex
|
||||
scaled_epsilon
|
||||
);
|
||||
|
||||
|
||||
|
@ -38,6 +39,7 @@ use constant MAX => 1;
|
|||
our $parallel_degrees_limit = abs(deg2rad(3));
|
||||
|
||||
sub epsilon () { 1E-4 }
|
||||
sub scaled_epsilon () { epsilon / &Slic3r::SCALING_FACTOR }
|
||||
|
||||
sub scale ($) { $_[0] / &Slic3r::SCALING_FACTOR }
|
||||
sub unscale ($) { $_[0] * &Slic3r::SCALING_FACTOR }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue