Allow shapes to carry an arbitrary identifier (Tuple)
This commit is contained in:
parent
380393dbc3
commit
9ab1372c7b
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ class Shape(metaclass=ABCMeta):
|
|||
# Dose
|
||||
_dose = 1.0 # type: float
|
||||
|
||||
# An arbitrary identifier for the shape, usually not set but used by Pattern.flatten()
|
||||
identifier = () # type: Tuple
|
||||
|
||||
# --- Abstract methods
|
||||
@abstractmethod
|
||||
def to_polygons(self, num_vertices: int, max_arclen: float) -> List['Polygon']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue