#NEWLINE# def reverse_winding( self ) : #NEWLINE# #INDENT# positions = [ ] #NEWLINE# for i in xrange ( 0 , len ( self . positions ) , 3 ) : #NEWLINE# #INDENT# ( v1 , v2 , v3 ) = self . positions [ i : ( i + 3 ) ] #NEWLINE# positions . extend ( [ v3 , v2 , x ] ) #NEWLINE# #UNINDENT# normals = [ util . neg ( x ) for x in self . normals ] #NEWLINE# uvs = [ ] #NEWLINE# for i in xrange ( 0 , len ( self . uvs ) , 3 ) : #NEWLINE# #INDENT# ( v1 , v2 , v3 ) = self . uvs [ i : ( i + 3 ) ] #NEWLINE# uvs . extend ( [ v3 , v2 , v1 ] ) #NEWLINE# #UNINDENT# return Mesh ( positions , normals , uvs )