def __init__(self, right, up, normal, mode, latticeType): shape.__init__(self, right, up, normal) # Each element is a dictionary object storing "carbon" info for a layer self.carbonPosDict = {} self.hedroPosDict = {} self.markedAtoms = {} # Each element is a dictionary for the bonds info for a layer self.bondLayers = {} self.displist = ColorSortedDisplayList() self.havelist = 0 self.dispMode = mode self.latticeType = latticeType self.layerThickness = {} self.layeredCurves = {} # A list of (merged bb, curves) for each layer
def __init__(self): self.csdl = ColorSortedDisplayList() self.comparator = self._comparator_class() self.before_client_main_recompile() # get ready right away return