#NEWLINE# def swap_axes( self , i , j , k ) : #NEWLINE# #INDENT# ( si , sj , sk ) = ( copysign ( 1 , i ) , copysign ( 1 , j ) , copysign ( 1 , k ) ) #NEWLINE# ( i , j , k ) = ( abs ( i ) , abs ( j ) , abs ( k ) ) #NEWLINE# positions = [ ( ( v [ i ] * si ) , ( v [ j ] * sj ) , ( v [ k ] * sk ) ) for v in self . positions ] #NEWLINE# normals = [ ( ( v [ i ] * k ) , ( v [ j ] * sj ) , ( v [ k ] * sk ) ) for v in self . normals ] #NEWLINE# uvs = list ( self . uvs ) #NEWLINE# return Mesh ( positions , normals , uvs )