Skip to content

Commit

Permalink
Cleaner usage of the PI constant
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Oct 30, 2012
1 parent 25d88bd commit 0a5016a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions lib/Slic3r/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use utf8;

use List::Util qw(first);

use constant PI => 4 * atan2(1, 1);

# cemetery of old config settings
our @Ignore = qw(duplicate_x duplicate_y multiply_x multiply_y support_material_tool);

Expand Down
3 changes: 1 addition & 2 deletions lib/Slic3r/Fill/Base.pm
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package Slic3r::Fill::Base;
use Moo;

use Slic3r::Geometry qw(PI);

has 'print' => (is => 'rw');
has 'layer' => (is => 'rw');
has 'max_print_dimension' => (is => 'rw');
has 'angle' => (is => 'rw', default => sub { $Slic3r::Config->fill_angle });

use constant PI => 4 * atan2(1, 1);

sub angles () { [0, PI/2] }

sub infill_direction {
Expand Down

0 comments on commit 0a5016a

Please sign in to comment.