def getGeometryOutputByManipulation(geometryOutput, xmlElement): "Get geometryOutput manipulated by the plugins in the manipulation shapes & solids folders." xmlProcessor = xmlElement.getXMLProcessor() matchingPlugins = evaluate.getFromCreationEvaluatorPlugins(xmlProcessor.manipulationEvaluatorDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins(xmlProcessor.manipulationShapeDictionary, xmlElement) matchingPlugins.sort(evaluate.compareExecutionOrderAscending) for matchingPlugin in matchingPlugins: geometryOutput = matchingPlugin.getManipulatedGeometryOutput(geometryOutput, xmlElement) return geometryOutput
def getGeometryOutputByManipulation( geometryOutput, xmlElement ): "Get geometryOutput manipulated by the plugins in the manipulation shapes & solids folders." xmlProcessor = xmlElement.getXMLProcessor() matchingPlugins = evaluate.getFromCreationEvaluatorPlugins( xmlProcessor.manipulationEvaluatorDictionary, xmlElement ) matchingPlugins += evaluate.getMatchingPlugins( xmlProcessor.manipulationShapeDictionary, xmlElement ) matchingPlugins.sort( evaluate.compareExecutionOrderAscending ) for matchingPlugin in matchingPlugins: geometryOutput = matchingPlugin.getManipulatedGeometryOutput( geometryOutput, xmlElement ) return geometryOutput
def getManipulationPluginLoops(self, xmlElement): "Get loop manipulated by the plugins in the manipulation paths folder." xmlProcessor = xmlElement.getXMLProcessor() matchingPlugins = evaluate.getFromCreationEvaluatorPlugins(xmlProcessor.manipulationEvaluatorDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins(xmlProcessor.manipulationPathDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins(xmlProcessor.manipulationShapeDictionary, xmlElement) matchingPlugins.sort(evaluate.compareExecutionOrderAscending) loops = [self.loop] for matchingPlugin in matchingPlugins: matchingLoops = [] prefix = matchingPlugin.__name__ + '.' for loop in loops: matchingLoops += matchingPlugin.getManipulatedPaths(self.close, loop, prefix, self.sideLength, xmlElement) loops = matchingLoops return loops
def getManipulationPluginLoops(self, xmlElement): "Get loop manipulated by the plugins in the manipulation paths folder." xmlProcessor = xmlElement.getXMLProcessor() matchingPlugins = evaluate.getFromCreationEvaluatorPlugins( xmlProcessor.manipulationEvaluatorDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins( xmlProcessor.manipulationPathDictionary, xmlElement) matchingPlugins += evaluate.getMatchingPlugins( xmlProcessor.manipulationShapeDictionary, xmlElement) matchingPlugins.sort(evaluate.compareExecutionOrderAscending) loops = [self.loop] for matchingPlugin in matchingPlugins: matchingLoops = [] prefix = matchingPlugin.__name__ + '.' for loop in loops: matchingLoops += matchingPlugin.getManipulatedPaths( self.close, loop, prefix, self.sideLength, xmlElement) loops = matchingLoops return loops