diff options
author | Michael Schwarz <michi.schwarz@gmail.com> | 2014-12-25 15:16:42 +0100 |
---|---|---|
committer | Michael Schwarz <michi.schwarz@gmail.com> | 2014-12-25 15:16:42 +0100 |
commit | d08e4be25f157d59075e0b2a669e6388cb462474 (patch) | |
tree | 29b1363948f6dc83fff4c68052b6924f81d215d8 /support/dxf_export/cubicsuperpath.py | |
parent | 2433482b8768533244480bf15ba759eee3f51969 (diff) | |
parent | bdf3ae0ae3d66235bbff5710ffe1b34e9d7f12d2 (diff) | |
download | pogojig-d08e4be25f157d59075e0b2a669e6388cb462474.tar.gz pogojig-d08e4be25f157d59075e0b2a669e6388cb462474.tar.bz2 pogojig-d08e4be25f157d59075e0b2a669e6388cb462474.zip |
Merge branch 'master' into no-examples
Conflicts:
.gitignore
Diffstat (limited to 'support/dxf_export/cubicsuperpath.py')
-rwxr-xr-x | support/dxf_export/cubicsuperpath.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support/dxf_export/cubicsuperpath.py b/support/dxf_export/cubicsuperpath.py index af61acb..925efdb 100755 --- a/support/dxf_export/cubicsuperpath.py +++ b/support/dxf_export/cubicsuperpath.py @@ -46,8 +46,8 @@ def ArcToPath(p1,params): rx,ry,teta,longflag,sweepflag,x2,y2=params[:] teta = teta*pi/180.0 B=[x2,y2] - if rx==0 or ry==0: - return([[A,A,A],[B,B,B]]) + if rx==0 or ry==0 or A==B: + return([[A[:],A[:],A[:]],[B[:],B[:],B[:]]]) mat=matprod((rotmat(teta),[[1/rx,0],[0,1/ry]],rotmat(-teta))) applymat(mat, A) applymat(mat, B) @@ -166,4 +166,4 @@ def formatPath(p): return simplepath.formatPath(unCubicSuperPath(p)) -# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99 +# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 fileencoding=utf-8 textwidth=99 |