3-D Visualization |
Example -- Modifying the Alphamap
This example uses slice planes to examine volume data. The slice planes use the color data for alpha data and employ a rampdown alphamap (the values range from 1 to 0):
FaceAlpha
.
h = slice(x,y,z,v,[-1 -.75 -.5],[],[0]); alpha('color') set(h,'EdgeColor','none','FaceColor','interp',... 'FaceAlpha','interp')
hsv
colormap.
This alphamap causes the smallest values of the function (around zero) to be displayed with the least transparency and the greatest values to display with the most transparency. This enables you to see through the slice planes, while at the same time preserving the data around zero.
Selecting an Alphamap | Creating 3-D Models with Patches |
© 1994-2005 The MathWorks, Inc.