diff options
author | jaseg <git@jaseg.de> | 2021-12-29 22:34:01 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-12-29 22:34:01 +0100 |
commit | a0e8aa16e1a34a8309f9fefed90fd5ddf6b33709 (patch) | |
tree | 512ec1f760afb3623f879a8a956d62cd4b48413f /gerbonara/gerber/graphic_primitives.py | |
parent | d8ff4a468b7299a370905b5c12c62393e369c61a (diff) | |
download | gerbonara-a0e8aa16e1a34a8309f9fefed90fd5ddf6b33709.tar.gz gerbonara-a0e8aa16e1a34a8309f9fefed90fd5ddf6b33709.tar.bz2 gerbonara-a0e8aa16e1a34a8309f9fefed90fd5ddf6b33709.zip |
More fixes
Diffstat (limited to 'gerbonara/gerber/graphic_primitives.py')
-rw-r--r-- | gerbonara/gerber/graphic_primitives.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gerbonara/gerber/graphic_primitives.py b/gerbonara/gerber/graphic_primitives.py index 4810066..c917365 100644 --- a/gerbonara/gerber/graphic_primitives.py +++ b/gerbonara/gerber/graphic_primitives.py @@ -82,6 +82,12 @@ class ArcPoly(GraphicPrimitive): for (x1, y1), (x2, y2), radius in self.segments: return + def __len__(self): + return len(self.outline) + + def __bool__(self): + return bool(len(self)) + @dataclass class Line(GraphicPrimitive): |