def getPreviewNode(self, bounds): symbol_list = self.createSymbolList(bounds) if symbol_list is None: return None log.info("Rendering symbols to OpenGL") sceneNodes = renderSceneNodes(symbol_list) return sceneNodes
def getPreviewNode(self, bounds): system = koch.Snowflake(bounds, blocktype=self.blocktypeButton.block) symbol_list = [system] max_iterations = self.iterationsSlider.value() def process(_symbol_list): for iteration, _symbol_list in applyReplacementsIterated(_symbol_list, max_iterations): yield iteration, max_iterations yield _symbol_list symbol_list = showProgress("Generating...", process(symbol_list), cancel=True) if symbol_list is False: return sceneNodes = renderSceneNodes(symbol_list) return sceneNodes
def renderSceneNodes(self, symbol_list): return renderSceneNodes(symbol_list)