comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Polyshade and PostScriptsp = fltarr(20,20,20)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Polyshade and PostScriptsp = fltarr(20,20,20) [message #1583] Fri, 10 December 1993 04:54
hahn is currently offline  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
[Message index]
 
Read Message
Previous Topic: IDL 3.5.1 released
Next Topic: C++ libraries like IDL/PV-WAVE?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:13:31 PDT 2025

Total time taken to generate the page: 1.19839 seconds