Example #1
0
def manipulateXMLElement(target, xmlElement):
	"""Manipulate the xml element."""
	rotateTetragrid = matrix.getRotateTetragrid('', xmlElement)
	if rotateTetragrid is None:
		print('Warning, rotateTetragrid was None in rotate so nothing will be done for:')
		print(xmlElement)
		return
	matrix.setAttributeDictionaryToMultipliedTetragrid(rotateTetragrid, target)
def manipulateElementNode(elementNode, target):
	'Manipulate the xml element.'
	rotateTetragrid = matrix.getRotateTetragrid(elementNode, '')
	if rotateTetragrid == None:
		print('Warning, rotateTetragrid was None in rotate so nothing will be done for:')
		print(elementNode)
		return
	matrix.setAttributesToMultipliedTetragrid(target, rotateTetragrid)
def rotatePoints(elementNode, points, prefix):
	'Rotate the points.'
	rotateTetragrid = matrix.getRotateTetragrid(elementNode, prefix)
	if rotateTetragrid == None:
		print('Warning, rotateTetragrid was None in rotate so nothing will be done for:')
		print(elementNode)
		return
	for point in points:
		matrix.transformVector3ByMatrix(rotateTetragrid, point)
Example #4
0
def rotatePoints(points, prefix, xmlElement):
	"""Rotate the points."""
	rotateTetragrid = matrix.getRotateTetragrid(prefix, xmlElement)
	if rotateTetragrid is 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)
Example #5
0
def manipulateElementNode(elementNode, target):
    'Manipulate the xml element.'
    rotateTetragrid = matrix.getRotateTetragrid(elementNode, '')
    if rotateTetragrid == None:
        print(
            'Warning, rotateTetragrid was None in rotate so nothing will be done for:'
        )
        print(elementNode)
        return
    matrix.setAttributesToMultipliedTetragrid(target, rotateTetragrid)
Example #6
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)
Example #7
0
def rotatePoints(elementNode, points, prefix):
    'Rotate the points.'
    rotateTetragrid = matrix.getRotateTetragrid(elementNode, prefix)
    if rotateTetragrid == None:
        print(
            'Warning, rotateTetragrid was None in rotate so nothing will be done for:'
        )
        print(elementNode)
        return
    for point in points:
        matrix.transformVector3ByMatrix(rotateTetragrid, point)
Example #8
0
	def __init__(self, elementNode, prefix):
		'Set defaults.'
		self.rotateTetragrid = matrix.getRotateTetragrid(elementNode, prefix)
Example #9
0
 def __init__(self, elementNode, prefix):
     'Set defaults.'
     self.rotateTetragrid = matrix.getRotateTetragrid(elementNode, prefix)