summaryrefslogtreecommitdiff
path: root/gerberex/dxf_path.py
diff options
context:
space:
mode:
authoropiopan <opiopan@gmail.com>2019-04-03 00:30:00 +0900
committeropiopan <opiopan@gmail.com>2019-04-03 00:30:00 +0900
commitcb420e39e278f7ab6f002600a7698d7be101eb7d (patch)
tree1d82fcd72627c71715ec0b9724c8f976a49bdfdd /gerberex/dxf_path.py
parentb72d891998cc87273b9dd8bfe4d864cbe6a8cc62 (diff)
downloadgerbonara-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.py4
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: