summaryrefslogtreecommitdiff
path: root/gerber/operations.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2015-02-18 23:13:23 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2015-02-18 23:13:23 -0500
commit5966d7830bda7f37ed5ddcc1bfccb93e7f780eaa (patch)
treeb5d96312c9dab598ec342d2215d235f2b00e8a48 /gerber/operations.py
parent4b92e1b59dcaff48bda4e1c906506432651fcd4f (diff)
downloadgerbonara-5966d7830bda7f37ed5ddcc1bfccb93e7f780eaa.tar.gz
gerbonara-5966d7830bda7f37ed5ddcc1bfccb93e7f780eaa.tar.bz2
gerbonara-5966d7830bda7f37ed5ddcc1bfccb93e7f780eaa.zip
Add offset operation
Diffstat (limited to 'gerber/operations.py')
-rw-r--r--gerber/operations.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gerber/operations.py b/gerber/operations.py
index 9624a16..50df738 100644
--- a/gerber/operations.py
+++ b/gerber/operations.py
@@ -75,8 +75,9 @@ def offset(cam_file, x_offset, y_offset):
gerber_file : `gerber.cam.CamFile` subclass
An offset deep copy of the source file.
"""
- # TODO
- pass
+ cam_file = copy.deepcopy(cam_file)
+ cam_file.offset(x_offset, y_offset)
+ return cam_file
def scale(cam_file, x_scale, y_scale):
""" Scale a Cam file by a specified amount in the X and Y directions.