mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-08 14:34:04 -06:00
New implementation of the little inwards move before leaving a loop. #186
This commit is contained in:
parent
283809f5c2
commit
f001374c6e
4 changed files with 42 additions and 6 deletions
11
t/angles.t
11
t/angles.t
|
@ -2,7 +2,7 @@ use Test::More;
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
plan tests => 24;
|
||||
plan tests => 26;
|
||||
|
||||
BEGIN {
|
||||
use FindBin;
|
||||
|
@ -10,7 +10,7 @@ BEGIN {
|
|||
}
|
||||
|
||||
use Slic3r;
|
||||
use Slic3r::Geometry qw(line_atan line_direction rad2deg_dir PI);
|
||||
use Slic3r::Geometry qw(line_atan line_direction rad2deg_dir angle3points PI);
|
||||
|
||||
#==========================================================
|
||||
|
||||
|
@ -54,3 +54,10 @@ use Slic3r::Geometry qw(line_atan line_direction rad2deg_dir PI);
|
|||
}
|
||||
|
||||
#==========================================================
|
||||
|
||||
{
|
||||
is angle3points([0,0], [10,0], [0,10]), PI/2, 'CW angle3points';
|
||||
is angle3points([0,0], [0,10], [10,0]), PI/2*3, 'CCW angle3points';
|
||||
}
|
||||
|
||||
#==========================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue