diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-07-14 13:32:17 -0300 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-07-14 13:32:17 -0300 |
commit | c92d2d9ea2853fd22b5ff51f211b03b4e660c551 (patch) | |
tree | 5bca9d6f4389b2d3d93388800552f7e3ea924bfb /gerber/primitives.py | |
parent | 1a70064e1097b90215e9f58b36cb31520d650eee (diff) | |
parent | 15254a5bb7ad866e09374c5a99e9be4468e4d3c7 (diff) | |
download | gerbonara-c92d2d9ea2853fd22b5ff51f211b03b4e660c551.tar.gz gerbonara-c92d2d9ea2853fd22b5ff51f211b03b4e660c551.tar.bz2 gerbonara-c92d2d9ea2853fd22b5ff51f211b03b4e660c551.zip |
Merge pull request #31 from curtacircuitos/statement_link
Add support for tool reordering and drill path optimization example.
Diffstat (limited to 'gerber/primitives.py')
-rw-r--r-- | gerber/primitives.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gerber/primitives.py b/gerber/primitives.py index bdd49f7..00ecb12 100644 --- a/gerber/primitives.py +++ b/gerber/primitives.py @@ -36,11 +36,13 @@ class Primitive(object): Rotation of a primitive about its origin in degrees. Positive rotation
is counter-clockwise as viewed from the board top.
"""
- def __init__(self, level_polarity='dark', rotation=0, units=None):
+ def __init__(self, level_polarity='dark', rotation=0, units=None, id=None, statement_id=None):
self.level_polarity = level_polarity
self.rotation = rotation
self.units = units
self._to_convert = list()
+ self.id = id
+ self.statement_id = statement_id
def bounding_box(self):
""" Calculate bounding box
|