-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New experimental --gcode-arcs options to generate G2/G3 commands. #23
- Loading branch information
Showing
13 changed files
with
333 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
|
||
#!start included /opt/local/lib/perl5/5.12.3/ExtUtils/MANIFEST.SKIP | ||
# Avoid version control files. | ||
\bRCS\b | ||
\bCVS\b | ||
\bSCCS\b | ||
,v$ | ||
\B\.svn\b | ||
\B\.git\b | ||
\B\.gitignore\b | ||
\b_darcs\b | ||
\B\.cvsignore$ | ||
|
||
# Avoid VMS specific MakeMaker generated files | ||
\bDescrip.MMS$ | ||
\bDESCRIP.MMS$ | ||
\bdescrip.mms$ | ||
|
||
# Avoid Makemaker generated and utility files. | ||
\bMANIFEST\.bak | ||
\bMakefile$ | ||
\bblib/ | ||
\bMakeMaker-\d | ||
\bpm_to_blib\.ts$ | ||
\bpm_to_blib$ | ||
\bblibdirs\.ts$ # 6.18 through 6.25 generated this | ||
|
||
# Avoid Module::Build generated and utility files. | ||
\bBuild$ | ||
\b_build/ | ||
\bBuild.bat$ | ||
\bBuild.COM$ | ||
\bBUILD.COM$ | ||
\bbuild.com$ | ||
|
||
# Avoid temp and backup files. | ||
~$ | ||
\.old$ | ||
\#$ | ||
\b\.# | ||
\.bak$ | ||
\.tmp$ | ||
\.# | ||
\.rej$ | ||
|
||
# Avoid OS-specific files/dirs | ||
# Mac OSX metadata | ||
\B\.DS_Store | ||
# Mac OSX SMB mount metadata files | ||
\B\._ | ||
|
||
# Avoid Devel::Cover files. | ||
\bcover_db\b | ||
#!end included /opt/local/lib/perl5/5.12.3/ExtUtils/MANIFEST.SKIP | ||
|
||
# Avoid configuration metadata file | ||
^MYMETA\. | ||
|
||
# Avoid Module::Build generated and utility files. | ||
\bBuild$ | ||
\bBuild.bat$ | ||
\b_build | ||
\bBuild.COM$ | ||
\bBUILD.COM$ | ||
\bbuild.com$ | ||
^MANIFEST\.SKIP | ||
|
||
# Avoid archives of this distribution | ||
\bSlic3r-[\d\.\_]+ | ||
|
||
\.git$ | ||
^\.DS_Store$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package Slic3r::ExtrusionPath::Arc; | ||
use Moo; | ||
|
||
extends 'Slic3r::ExtrusionPath'; | ||
|
||
has 'center' => (is => 'ro', required => 1); | ||
has 'radius' => (is => 'ro', required => 1); | ||
has 'orientation' => (is => 'ro', required => 1); # cw/ccw | ||
|
||
use Slic3r::Geometry qw(PI angle3points); | ||
|
||
sub angle { | ||
my $self = shift; | ||
return angle3points($self->center, @{$self->points}); | ||
} | ||
|
||
sub length { | ||
my $self = shift; | ||
|
||
return $self->radius * $self->angle; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.