Add GridRepetition: a SubPattern-like object which implements regular spatial arrays.

Also rework masque.file.gdsii to consolidate write() and
write_dose2dtype()
This commit is contained in:
jan 2019-03-31 20:57:10 -07:00
commit c50bd8e148
4 changed files with 494 additions and 134 deletions

View file

@ -12,6 +12,7 @@ import numpy
# .visualize imports matplotlib and matplotlib.collections
from .subpattern import SubPattern
from .repetition import GridRepetition
from .shapes import Shape, Polygon
from .label import Label
from .utils import rotation_matrix_2d, vector2
@ -34,7 +35,7 @@ class Pattern:
"""
shapes = None # type: List[Shape]
labels = None # type: List[Labels]
subpatterns = None # type: List[SubPattern]
subpatterns = None # type: List[SubPattern or GridRepetition]
name = None # type: str
def __init__(self,