Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)