Ejemplo n.º 1
0
def manipulateXMLElement(target, xmlElement):
	'Manipulate the xml element.'
	rotateTetragrid = matrix.getRotateTetragrid('', xmlElement)
	if rotateTetragrid == None:
		print('Warning, rotateTetragrid was None in rotate so nothing will be done for:')
		print(xmlElement)
		return
	matrix.setAttributeDictionaryToMultipliedTetragrid(rotateTetragrid, target)
Ejemplo n.º 2
0
def rotatePoints(points, prefix, xmlElement):
	'Rotate the points.'
	rotateTetragrid = matrix.getRotateTetragrid(prefix, xmlElement)
	if rotateTetragrid == None:
		print('Warning, rotateTetragrid was None in rotate so nothing will be done for:')
		print(xmlElement)
		return
	for point in points:
		matrix.transformVector3ByMatrix(rotateTetragrid, point)
Ejemplo n.º 3
0
def manipulateXMLElement(target, xmlElement):
    'Manipulate the xml element.'
    rotateTetragrid = matrix.getRotateTetragrid('', xmlElement)
    if rotateTetragrid == None:
        print(
            'Warning, rotateTetragrid was None in rotate so nothing will be done for:'
        )
        print(xmlElement)
        return
    matrix.setAttributeDictionaryToMultipliedTetragrid(rotateTetragrid, target)
Ejemplo n.º 4
0
def rotatePoints(points, prefix, xmlElement):
    'Rotate the points.'
    rotateTetragrid = matrix.getRotateTetragrid(prefix, xmlElement)
    if rotateTetragrid == None:
        print(
            'Warning, rotateTetragrid was None in rotate so nothing will be done for:'
        )
        print(xmlElement)
        return
    for point in points:
        matrix.transformVector3ByMatrix(rotateTetragrid, point)