def rotatePoints(points, prefix, xmlElement):
 rotateMatrixTetragrid = matrix.getRotateMatrixTetragrid(prefix, xmlElement)
 if (rotateMatrixTetragrid == None):
  print 'Warning, rotateMatrixTetragrid was None in rotate so nothing will be done for:'
  print xmlElement
  return
 for point in points:
  matrix.transformVector3ByMatrix(rotateMatrixTetragrid, point)

def rotatePoints ( points , prefix , xmlElement ) : rotateMatrixTetragrid = matrix . getRotateMatrixTetragrid ( prefix , xmlElement ) if ( rotateMatrixTetragrid == None ) : print 'Warning, rotateMatrixTetragrid was None in rotate so nothing will be done for:' print xmlElement return for point in points : matrix . transformVector3ByMatrix ( rotateMatrixTetragrid , point )
rotate the points .