Here's a sample script:
from paraview.simple import *
s = Sphere()
t = TextureMaptoSphere()
r = Show()
texture = servermanager.rendering.ImageTexture()
texture.FileName = /tmp/earth_texture.png
r.Texture = texture
Render()
Utkarsh
On Thu, Jan 30, 2014 at 10:37 PM, Richard Townsend
Hi folks —
Can someone give me some pointers on how to set up texture mapping from within
pvpython? I’d like to map a 2-D image (stored in a uniform rectilinear grid
poly object) onto the surface of a sphere. Unfortunately, the docs are both
brief and garbled (esp for the TextureMaptoSphere