aboutsummaryrefslogtreecommitdiff
path: root/gerberex/dxf_path.py
diff options
context:
space:
mode:
authorHiroshi Murayama <opiopan@gmail.com>2019-12-30 17:51:48 +0900
committerHiroshi Murayama <opiopan@gmail.com>2019-12-30 17:51:48 +0900
commitca23fbd9534ab3cba3fd7b032816766c1150ebf9 (patch)
treed35d276fcae9a86d5a7dbe2e06a45b3ae10afe93 /gerberex/dxf_path.py
parent244fcaa5346f4fad819cc2b72857cfb2c472944a (diff)
downloadpcb-tools-extension-ca23fbd9534ab3cba3fd7b032816766c1150ebf9.tar.gz
pcb-tools-extension-ca23fbd9534ab3cba3fd7b032816766c1150ebf9.tar.bz2
pcb-tools-extension-ca23fbd9534ab3cba3fd7b032816766c1150ebf9.zip
fix bugs that fail judgement of path's containment
Diffstat (limited to 'gerberex/dxf_path.py')
-rw-r--r--gerberex/dxf_path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerberex/dxf_path.py b/gerberex/dxf_path.py
index bb620ff..960b054 100644
--- a/gerberex/dxf_path.py
+++ b/gerberex/dxf_path.py
@@ -301,7 +301,7 @@ class DxfPath(object):
def _judge_cross(self, from_pt, to_pt, index, error_range):
standard = normalize_vec2d((to_pt[0] - from_pt[0], to_pt[1] - from_pt[1]))
- normal = (standard[1], standard[0])
+ normal = (standard[1], -standard[0])
def statements():
for i in range(index, len(self.statements)):
yield self.statements[i]