summaryrefslogtreecommitdiff
path: root/gerbonara/cad
diff options
context:
space:
mode:
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