Fill now has a constructor Fill(box, blocktype)
This commit is contained in:
parent
60a2a83a7b
commit
9a440c92cf
@ -124,8 +124,6 @@ def applyReplacementsIterated(symbol_list, repeats):
|
||||
|
||||
yield i, symbol_list
|
||||
|
||||
|
||||
|
||||
def renderBlocks(symbol_list):
|
||||
rendering = []
|
||||
for symbol in symbol_list:
|
||||
@ -222,6 +220,11 @@ class Fill(Geometric):
|
||||
+ parameters inherited from Geometric
|
||||
"""
|
||||
|
||||
def __init__(self, box=None, blocktype=None, **kw):
|
||||
super(Fill, self).__init__(box, **kw)
|
||||
if blocktype:
|
||||
self.parameters["blocktype"] = blocktype
|
||||
|
||||
def renderBlocks(self):
|
||||
return [(x, y, z, self.blocktype) for x, y, z in self.positions]
|
||||
|
||||
|
Reference in New Issue
Block a user