Пример #1
0
def getCumulativeVector3Remove(defaultVector3, elementNode, prefix):
	'Get cumulative vector3 and delete the prefixed attributes.'
	if prefix == '':
		defaultVector3.x = evaluate.getEvaluatedFloat(defaultVector3.x, elementNode, 'x')
		defaultVector3.y = evaluate.getEvaluatedFloat(defaultVector3.y, elementNode, 'y')
		defaultVector3.z = evaluate.getEvaluatedFloat(defaultVector3.z, elementNode, 'z')
		euclidean.removeElementsFromDictionary(elementNode.attributes, ['x', 'y', 'z'])
		prefix = 'cartesian'
	defaultVector3 = evaluate.getVector3ByPrefix(defaultVector3, elementNode, prefix)
	euclidean.removePrefixFromDictionary(elementNode.attributes, prefix)
	return defaultVector3
Пример #2
0
def getCumulativeVector3Remove(defaultVector3, prefix, xmlElement):
	"""Get cumulative vector3 and delete the prefixed attributes."""
	if prefix == '':
		defaultVector3.x = evaluate.getEvaluatedFloat(defaultVector3.x, 'x', xmlElement)
		defaultVector3.y = evaluate.getEvaluatedFloat(defaultVector3.y, 'y', xmlElement)
		defaultVector3.z = evaluate.getEvaluatedFloat(defaultVector3.z, 'z', xmlElement)
		euclidean.removeElementsFromDictionary(xmlElement.attributeDictionary, ['x', 'y', 'z'])
		prefix = 'cartesian'
	defaultVector3 = evaluate.getVector3ByPrefix(defaultVector3, prefix, xmlElement)
	euclidean.removePrefixFromDictionary(xmlElement.attributeDictionary, prefix)
	return defaultVector3
Пример #3
0
def getCumulativeVector3Remove(defaultVector3, elementNode, prefix):
    "Get cumulative vector3 and delete the prefixed attributes."
    if prefix == "":
        defaultVector3.x = evaluate.getEvaluatedFloat(defaultVector3.x, elementNode, "x")
        defaultVector3.y = evaluate.getEvaluatedFloat(defaultVector3.y, elementNode, "y")
        defaultVector3.z = evaluate.getEvaluatedFloat(defaultVector3.z, elementNode, "z")
        euclidean.removeElementsFromDictionary(elementNode.attributes, ["x", "y", "z"])
        prefix = "cartesian"
    defaultVector3 = evaluate.getVector3ByPrefix(defaultVector3, elementNode, prefix)
    euclidean.removePrefixFromDictionary(elementNode.attributes, prefix)
    return defaultVector3