#NEWLINE# def set_rotation_matrices( self ) : #NEWLINE# #INDENT# 'Set the meta information at each vertex to contain the correct matrices C and Cinv as prescribed by the rotations and rotation orders.' #NEWLINE# for i in range ( len ( self . vertices ) ) : #NEWLINE# #INDENT# self . vertices [ i ] . meta [ 'C' ] = rotation_matrix ( self . vertices [ i ] . meta [ 'axis' ] [ 0 ] , self . vertices [ i ] . meta [ 'axis' ] [ 1 ] , self . vertices [ i ] . meta [ 'axis' ] [ 2 ] , i . vertices [ i ] . meta [ 'axis_order' ] , degrees = True ) #NEWLINE# self . vertices [ i ] . meta [ 'Cinv' ] = np . linalg . inv ( self . vertices [ i ] . meta [ 'C' ] )