Rendersvolumetric data in a translucent manner.
imgx The x dimension of the image to return.
imgy The y dimension of the image to return.
PRO vol_demo3
volx = 17 voly = 17 volz = 59
winx = 512 winy = 512
flow_axial = FLTARR(volx, voly, volz) OPENR, 1, !Data_Dir + 'cfd_axial.dat', /Xdr READU, 1, flow_axial CLOSE, 1 flow_axial = VOL_PAD(flow_axial, 1)
CENTER_VIEW, Xr=[0.0, 18.0], $ Yr=[0.0, 18.0], Zr=[0.0, 60.0], $ Az=210.0, Ay=120.0, Ax=0.0, Winx=512, Winy=512, Zoom=0.85
SET_SHADING, Light=[-1.0, 1.0, 0.5], $ /Gouraud, /Reject
SHADE_VOLUME, flow_axial, 110, vertex_list, polygon_list, /Low
WINDOW, 1, XSize=winx, YSize=winx, XPos=16, YPos=256, Colors=128 LOADCT, 3
img1 = POLYSHADE(vertex_list, polygon_list, $ XSize=winx, YSize=winy, /Data, /T3d) TVSCL, img1
WINDOW, 2, XSize=winx, YSize=winx, $ XPos=496, YPos=324, Colors=128
vol_dim = MAX([volx, voly, volz]) flow_axial = BYTSCL(flow_axial)
vol2 = VOL_TRANS(flow_axial, vol_dim, !P.T)
img2 = VOL_REND(vol2, winx, winy, Depth_q=0.4)
TVSCL, img2
END
vol_demo2
and vol_demo4
in:
wavedir/demo/arl
wavedir:[DEMO.ARL]
wavedir\demo\arl
wavedir
is the main PV-WAVE directory.