예제 #1
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)
예제 #2
0
def transformPoints(points, prefix, xmlElement):
	'Transform the points.'
	transformTetragrid = matrix.getTransformTetragrid(prefix, xmlElement)
	if transformTetragrid == 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)
예제 #3
0
def transformPoints(points, prefix, xmlElement):
    'Transform the points.'
    transformTetragrid = matrix.getTransformTetragrid(prefix, xmlElement)
    if transformTetragrid == 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)
예제 #4
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)