#NEWLINE# def createTextureGround( imageFilename , view ) : #NEWLINE# #INDENT# pd = createTexturedPlane ( ) #NEWLINE# texture = createTexture ( imageFilename ) #NEWLINE# texture . RepeatOn ( ) #NEWLINE# tcoords = vnp . getNumpyFromVtk ( pd , 'Texture Coordinates' ) #NEWLINE# tcoords *= 60 #NEWLINE# t = vtk . vtkTransform ( ) #NEWLINE# t . PostMultiply ( ) #NEWLINE# t . Scale ( 200 , 200 , 200 ) #NEWLINE# t . Translate ( 0 , 0 , ( - 0.005 ) ) #NEWLINE# pd = filterUtils . transformPolyData ( pd , t ) #NEWLINE# obj = vis . showPolyData ( pd , 'ground' , view = view , alpha = 1.0 , parent = 'skybox' ) #NEWLINE# obj . actor . SetTexture ( texture ) #NEWLINE# obj . actor . GetProperty ( ) . LightingOff ( )