summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/panelize/excellon.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-10-07 11:13:12 +0200
committerjaseg <git@jaseg.de>2021-10-07 11:13:12 +0200
commit4565712869ef4269d62de593a245ca8d001c4ea9 (patch)
tree32a8a2245e11c8dfad9bbd486ab7678a32b969c1 /gerbonara/gerber/panelize/excellon.py
parentdd8944709c5a48ccb52ba41a2310218770eb1669 (diff)
downloadgerbonara-4565712869ef4269d62de593a245ca8d001c4ea9.tar.gz
gerbonara-4565712869ef4269d62de593a245ca8d001c4ea9.tar.bz2
gerbonara-4565712869ef4269d62de593a245ca8d001c4ea9.zip
WIP
Diffstat (limited to 'gerbonara/gerber/panelize/excellon.py')
-rw-r--r--gerbonara/gerber/panelize/excellon.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/gerbonara/gerber/panelize/excellon.py b/gerbonara/gerber/panelize/excellon.py
index ae0b68e..e6cfcd0 100644
--- a/gerbonara/gerber/panelize/excellon.py
+++ b/gerbonara/gerber/panelize/excellon.py
@@ -13,8 +13,7 @@ from ..excellon_statements import ExcellonStatement, UnitStmt, CoordinateStmt, U
RetractWithClampingStmt, RetractWithoutClampingStmt, \
EndOfProgramStmt
from ..cam import FileSettings
-from ..utils import inch, metric, write_gerber_value, parse_gerber_value
-from .utility import rotate
+from ..utils import inch, metric, write_gerber_value, parse_gerber_value, rotate_point
def loads(data, filename=None, settings=None, tools=None, format=None):
if not settings:
@@ -221,7 +220,7 @@ class DrillHitEx(DrillHit):
self.position = tuple(map(metric, self.position))
def rotate(self, angle, center=(0, 0)):
- self.position = rotate(*self.position, angle, center)
+ self.position = rotate_point(self.position, angle, center)
def to_excellon(self, settings):
return CoordinateStmtEx(*self.position).to_excellon(settings)
@@ -236,8 +235,8 @@ class DrillSlotEx(DrillSlot):
self.end = tuple(map(metric, self.end))
def rotate(self, angle, center=(0,0)):
- self.start = rotate(*self.start, angle, center)
- self.end = rotate(*self.end, angle, center)
+ self.start = rotate_point(self.start, angle, center)
+ self.end = rotate_point(self.end, angle, center)
def to_excellon(self, settings):
return SlotStmt(*self.start, *self.end).to_excellon(settings)
@@ -295,9 +294,9 @@ class DrillRout(object):
def rotate(self, angle, center=(0, 0)):
for node in self.nodes:
- node.position = rotate(*node.position, angle, center)
+ node.position = rotate_point(node.position, angle, center)
if node.center_offset is not None:
- node.center_offset = rotate(*node.center_offset, angle, (0., 0.))
+ node.center_offset = rotate_point(node.center_offset, angle, (0., 0.))
class UnitStmtEx(UnitStmt):
@classmethod