Some questions about the commands
def dePixelating(self,cell): L=; compList=self.inventory.getClusterCells(cell.clusterId) for cell2 in compList: if (cell2.id != cell.id): pixelList=self.getCellPixelList(cell) for pixel in pixelList: L.append(pixel.pixel) for pixel in L: self.cellField.set(pixel,cell) cell.targetVolume+=len(L)
1. what's the function of self.cellField.set(pixel,cell)? To make the pixel belong to the cell?
2. should the command "pixelList=self.getCellPixelList(cell)" be "pixelList=self.getCellPixelList(cell2)"?
3.what 's the function of this function?
I think this is related to mitosis or dividing of clustered cells, as opposed to non-clustered cells. See pg 79-81 of the 3.7.2 Reference Manual. The general 3 steps to that includes getting the set of all pixels contained by the clustered cell. Then pixels are assigned to either the parent or child cell.