diff options
author | jaseg <git@jaseg.de> | 2023-04-04 01:35:38 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-10 23:57:15 +0200 |
commit | a95aacac483e548ae6bfcf89564a84439c7e05fa (patch) | |
tree | b5d6f95b76bafa560abe92d21a6131c1ee3a8399 /gerbonara/cad | |
parent | d0894b252225b89054db379a5f328885f7b046ea (diff) | |
download | gerbonara-a95aacac483e548ae6bfcf89564a84439c7e05fa.tar.gz gerbonara-a95aacac483e548ae6bfcf89564a84439c7e05fa.tar.bz2 gerbonara-a95aacac483e548ae6bfcf89564a84439c7e05fa.zip |
Add missing WIP changes
Diffstat (limited to 'gerbonara/cad')
-rw-r--r-- | gerbonara/cad/primitives.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gerbonara/cad/primitives.py b/gerbonara/cad/primitives.py index f757e67..d232d20 100644 --- a/gerbonara/cad/primitives.py +++ b/gerbonara/cad/primitives.py @@ -167,10 +167,16 @@ class Trace: else: yield (sgn(dx)*abs(dy), dy) else: # self.style == 'ortho' - pass - #if p == (orientation == 'cw'): - - #else: + if p == (orientation == 'cw'): + if abs(dy) > abs(dx): + yield (0, dy) + else: + yield (dx, 0) + else: + if abs(dy) > abs(dx): + yield (dx, 0) + else: + yield (0, dy) yield p2 |