diff options
author | opiopan <opiopan@gmail.com> | 2019-04-03 00:30:00 +0900 |
---|---|---|
committer | opiopan <opiopan@gmail.com> | 2019-04-03 00:30:00 +0900 |
commit | cb420e39e278f7ab6f002600a7698d7be101eb7d (patch) | |
tree | 1d82fcd72627c71715ec0b9724c8f976a49bdfdd /gerberex/dxf_path.py | |
parent | b72d891998cc87273b9dd8bfe4d864cbe6a8cc62 (diff) | |
download | gerbonara-cb420e39e278f7ab6f002600a7698d7be101eb7d.tar.gz gerbonara-cb420e39e278f7ab6f002600a7698d7be101eb7d.tar.bz2 gerbonara-cb420e39e278f7ab6f002600a7698d7be101eb7d.zip |
fix a rotaion issue
Diffstat (limited to 'gerberex/dxf_path.py')
-rw-r--r-- | gerberex/dxf_path.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gerberex/dxf_path.py b/gerberex/dxf_path.py index 930d8d2..2825c58 100644 --- a/gerberex/dxf_path.py +++ b/gerberex/dxf_path.py @@ -5,6 +5,7 @@ from gerber.utils import inch, metric, write_gerber_value from gerber.cam import FileSettings +from gerberex.utility import is_equal_point, is_equal_value class DxfPath(object): def __init__(self, statement, error_range=0): @@ -21,12 +22,10 @@ class DxfPath(object): @property def is_closed(self): - from gerberex.dxf import is_equal_point return len(self.statements) > 1 and \ is_equal_point(self.start, self.end, self.error_range) def is_equal_to(self, target, error_range=0): - from gerberex.dxf import is_equal_point if not isinstance(target, DxfPath): return False if len(self.statements) != len(target.statements): @@ -59,7 +58,6 @@ class DxfPath(object): self.statements = rlist def merge(self, element, error_range=0): - from gerberex.dxf import is_equal_point if self.is_closed or element.is_closed: return False if not error_range: |