예제 #1
0
def getSolidMatchingPlugins(elementNode):
    'Get solid plugins in the manipulation matrix, shapes & solids folders.'
    xmlProcessor = elementNode.getXMLProcessor()
    matchingPlugins = evaluate.getMatchingPlugins(
        elementNode, xmlProcessor.manipulationMatrixDictionary)
    return matchingPlugins + evaluate.getMatchingPlugins(
        elementNode, xmlProcessor.manipulationShapeDictionary)
예제 #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.manipulationMatrixDictionary, xmlElement)
	matchingPlugins = evaluate.getMatchingPlugins(xmlProcessor.manipulationMatrixDictionary, xmlElement)
	matchingPlugins += evaluate.getMatchingPlugins(xmlProcessor.manipulationShapeDictionary, xmlElement)
	matchingPlugins.sort(evaluate.compareExecutionOrderAscending)
	for matchingPlugin in matchingPlugins:
		prefix = matchingPlugin.__name__.replace('_', '') + '.'
		geometryOutput = matchingPlugin.getManipulatedGeometryOutput(geometryOutput, prefix, xmlElement)
	return geometryOutput
예제 #3
0
def getGeometryOutputByManipulation(geometryOutput, xmlElement):
    'Get geometryOutput manipulated by the plugins in the manipulation shapes & solids folders.'
    xmlProcessor = xmlElement.getXMLProcessor()
    #	matchingPlugins = evaluate.getFromCreationEvaluatorPlugins(xmlProcessor.manipulationMatrixDictionary, xmlElement)
    matchingPlugins = evaluate.getMatchingPlugins(
        xmlProcessor.manipulationMatrixDictionary, xmlElement)
    matchingPlugins += evaluate.getMatchingPlugins(
        xmlProcessor.manipulationShapeDictionary, xmlElement)
    matchingPlugins.sort(evaluate.compareExecutionOrderAscending)
    for matchingPlugin in matchingPlugins:
        prefix = matchingPlugin.__name__.replace('_', '') + '.'
        geometryOutput = matchingPlugin.getManipulatedGeometryOutput(
            geometryOutput, prefix, xmlElement)
    return geometryOutput
예제 #4
0
	def getManipulationPluginLoops(self, elementNode):
		'Get loop manipulated by the plugins in the manipulation paths folder.'
		xmlProcessor = elementNode.getXMLProcessor()
		matchingPlugins = evaluate.getMatchingPlugins(elementNode, xmlProcessor.manipulationMatrixDictionary)
		matchingPlugins += evaluate.getMatchingPlugins(elementNode, xmlProcessor.manipulationPathDictionary)
		matchingPlugins += evaluate.getMatchingPlugins(elementNode, xmlProcessor.manipulationShapeDictionary)
		matchingPlugins.sort(evaluate.compareExecutionOrderAscending)
		loops = [self.loop]
		for matchingPlugin in matchingPlugins:
			matchingLoops = []
			prefix = matchingPlugin.__name__.replace('_', '') + '.'
			for loop in loops:
				matchingLoops += matchingPlugin.getManipulatedPaths(self.close, elementNode, loop, prefix, self.sideLength)
			loops = matchingLoops
		return loops
예제 #5
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
예제 #6
0
	def getManipulationPluginLoops(self, elementNode):
		'Get loop manipulated by the plugins in the manipulation paths folder.'
		xmlProcessor = elementNode.getXMLProcessor()
		matchingPlugins = evaluate.getMatchingPlugins(elementNode, xmlProcessor.manipulationMatrixDictionary)
		matchingPlugins += evaluate.getMatchingPlugins(elementNode, xmlProcessor.manipulationPathDictionary)
		matchingPlugins += evaluate.getMatchingPlugins(elementNode, xmlProcessor.manipulationShapeDictionary)
		matchingPlugins.sort(evaluate.compareExecutionOrderAscending)
		loops = [self.loop]
		for matchingPlugin in matchingPlugins:
			matchingLoops = []
			prefix = matchingPlugin.__name__.replace('_', '') + '.'
			for loop in loops:
				matchingLoops += matchingPlugin.getManipulatedPaths(self.close, elementNode, loop, prefix, self.sideLength)
			loops = matchingLoops
		return loops
예제 #7
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
예제 #8
0
파일: solid.py 프로젝트: folksjos/RepG
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
예제 #9
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
예제 #10
0
def getSolidMatchingPlugins(xmlElement):
	'Get solid plugins in the manipulation matrix, shapes & solids folders.'
	xmlProcessor = xmlElement.getXMLProcessor()
	matchingPlugins = evaluate.getMatchingPlugins(xmlProcessor.manipulationMatrixDictionary, xmlElement)
	return matchingPlugins + evaluate.getMatchingPlugins(xmlProcessor.manipulationShapeDictionary, xmlElement)