summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/graphic_primitives.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/gerber/graphic_primitives.py')
-rw-r--r--gerbonara/gerber/graphic_primitives.py6
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):