Try something like below. It's kind of a quick and dirty example, but something like this should work for you. The MESH_OBJ routine is very usefull in createing quick 3D polygon meshes. Then these polygons can be overlayed. Notice the STYLE=1 keyword on the second IDLgrPolygon. This creates the grid:
grid = replicate(1, 36, 18)
mesh_obj, 4, verts, polys, grid, /closed
sphere = IDLgrPolygon(data=verts, polygons=polys, color=[100,100,255], style=2)
grid += 0.001
mesh_obj, 4, verts, polys, grid, /closed
thegrid = IDLgrPolygon(data=verts, polygons=polys, style=1, thick=2)
omodel = IDLgrModel()
omodel.add, sphere
omodel.add, thegrid
xobjview, omodel
-Josh
ITTVIS
|