Example #1
0
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
Example #2
0
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
Example #3
0
	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
Example #4
0
 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