Esempio n. 1
0
def manipulateXMLElement(target, xmlElement):
    """Manipulate the xml element."""
    transformTetragrid = matrix.getTransformTetragrid("", xmlElement)
    if transformTetragrid is None:
        print("Warning, transformTetragrid was None in transform so nothing will be done for:")
        print(xmlElement)
        return
    matrix.setAttributeDictionaryToMultipliedTetragrid(transformTetragrid, target)
Esempio n. 2
0
def manipulateElementNode(elementNode, target):
	'Manipulate the xml element.'
	transformTetragrid = matrix.getTransformTetragrid(elementNode, '')
	if transformTetragrid == None:
		print('Warning, transformTetragrid was None in transform so nothing will be done for:')
		print(elementNode)
		return
	matrix.setAttributesToMultipliedTetragrid(target, transformTetragrid)
Esempio n. 3
0
def manipulateXMLElement(target, xmlElement):
	'Manipulate the xml element.'
	transformTetragrid = matrix.getTransformTetragrid('', xmlElement)
	if transformTetragrid == None:
		print('Warning, transformTetragrid was None in transform so nothing will be done for:')
		print(xmlElement)
		return
	matrix.setAttributeDictionaryToMultipliedTetragrid(transformTetragrid, target)
Esempio n. 4
0
def transformPoints(points, prefix, xmlElement):
    """Transform the points."""
    transformTetragrid = matrix.getTransformTetragrid(prefix, xmlElement)
    if transformTetragrid is None:
        print("Warning, transformTetragrid was None in transform so nothing will be done for:")
        print(xmlElement)
        return
    for point in points:
        matrix.transformVector3ByMatrix(transformTetragrid, point)
Esempio n. 5
0
def transformPoints(elementNode, points, prefix):
	'Transform the points.'
	transformTetragrid = matrix.getTransformTetragrid(elementNode, prefix)
	if transformTetragrid == None:
		print('Warning, transformTetragrid was None in transform so nothing will be done for:')
		print(elementNode)
		return
	for point in points:
		matrix.transformVector3ByMatrix(transformTetragrid, point)
Esempio n. 6
0
	def __init__(self, elementNode, prefix):
		'Set defaults.'
		self.transformTetragrid = matrix.getTransformTetragrid(elementNode, prefix)