Polyshade and PostScriptsp = fltarr(20,20,20) [message #1583] |
Fri, 10 December 1993 04:54 |
hahn
Messages: 108 Registered: November 1993
|
Senior Member |
|
|
Hi,
The following program was taken from the reference manual (IDL 3.0),
page 1-174, but set_plot, 'ps' was added - according to the manual
the optional keyword parameters xsize and ysize were added.
When I omit xsize and ysize I get a memory allocation error as
documented. However, with xsize and ysize I get
% POLYSHADE: Vertex 1: x,y out of range
The problem does not occur when the output device is X.
But I need PostScript output and I cannot activate X in a batch
application.
The error occurs on IDL 3.1 and 3.5 on both AIX and MS Windows.
------------------------- Cut here ----------------------------------
set_plot, 'ps'
for x=0,19 do $
for y=0,19 do $
for z=0,19 do $
sp(x,y,z) = sqrt( (x-10)^2 + (y-10)^2 + (z-10)^2 )
shade_volume, sp, 8, v, p
scale3, xrange=[0,20], yrange=[0,20], zrange=[0,20]
image = polyshade ( v, p, /t3d, xsize=500, ysize=500 )
help, image
tv, image
end
|
|
|