summaryrefslogtreecommitdiff
path: root/gerbonara/cad
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-04 01:35:38 +0200
committerjaseg <git@jaseg.de>2023-04-04 01:35:38 +0200
commitdb2bacebc74fedc7a60cf2621f8448f1f4b7f10a (patch)
tree556cfbc8914cf0f37ca65ee5a4796c007c957ae9 /gerbonara/cad
parent8d4430ea612f51156cd9288321f99781ebbdc475 (diff)
downloadgerbonara-db2bacebc74fedc7a60cf2621f8448f1f4b7f10a.tar.gz
gerbonara-db2bacebc74fedc7a60cf2621f8448f1f4b7f10a.tar.bz2
gerbonara-db2bacebc74fedc7a60cf2621f8448f1f4b7f10a.zip
Add missing WIP changes
Diffstat (limited to 'gerbonara/cad')
-rw-r--r--gerbonara/cad/primitives.py14
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