Returns a list ofcolors for each polygon, given a polygon list and a list of colors for each vertex.
PRO sphere_demo2 radii = RANDOMU(s, 60, 60) radii = SMOOTH((radii + 1.0), 2) POLY_SPHERE, radii, 60, 60, vertex_list, $ polygon_list
p_colors = BYTSCL(DIST(60), Top=127)
WINDOW, 0, Colors=128, XPos=16, YPos=384 LOADCT, 1 CENTER_VIEW, Xr=[-2.0, 2.0], $ Yr=[-2.0, 2.0], Zr=[-2.0, 2.0], $ Ax=(-75.0), Az=(-90.0), Zoom=0.99
TVSCL, POLYSHADE(vertex_list, polygon_list, $ /T3d, Shade=p_colors)
WINDOW, 1, Colors = 128, XPos = 256, YPos = 64
pg_num = POLY_COUNT(polygon_list)
vertex_list = POLY_NORM(vertex_list) vertex_list = POLY_TRANS(vertex_list, !P.T) vertex_list = POLY_DEV(vertex_list, 640, 512)
p_colors = POLY_C_CONV(polygon_list, p_colors(*))
POLY_PLOT, vertex_list, polygon_list, $ pg_num, 640, 512, p_colors, 0, -1
END
poly_demo1
demonstration program in:
wavedir/demo/arl
wavedir:[DEMO.ARL]
wavedir\demo\arl
wavedir
is the main PV-WAVE directory.