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

Home » Public Forums » archive » Axes for 3D volumes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Axes for 3D volumes [message #52478] Wed, 07 February 2007 12:32 Go to previous message
Richard Edgar is currently offline  Richard Edgar
Messages: 8
Registered: February 2006
Junior Member
Greetings,

I am attempting to produce 3D isosurfaces in IDL, and I'd like to add
proper axes to the output. I've been following the example on
http://www.dfanning.com/tips/volume_axes.html
and with that, I can get axes which are labeled by cell number:

Surface, Dist(30), /NoData, $
xtitle="Radius",ytitle="Azimuth",ztitle="Z",$
XRange=s1, YRange=s2, ZRange=s3,$
/NoErase, /Save

SHADE_VOLUME,dens,densSurface,vertices,polys,/LOW

image = POLYSHADE(vertices,polys,/T3D,XSIZE=600,YSIZE=600)

where dens[i,j,k] is the 3D array I want to construct the isosurface
from, and s1=[0,imax] etc.

I'd like the axes labeled by the physical dimensions of dens. I have
these available, in rRange, phiRange and zRange (they're actually polar
co-ordinates, but I'm happy to treat them as cartesian). If I try

Surface, Dist(30), /NoData, $
xtitle="Radius",ytitle="Azimuth",ztitle="Z",$
XRange=rRange, YRange=phiRange, ZRange=zRange,$
/NoErase, /Save

I get
% POLYSHADE: Polygon 0 is degenerate, more may exist.
and an empty set of axes.

I have the impression that something, somehwere, is not communicating
the axis scaling correctly, but I'm at a loss as to what. The {xyz}range
keywords to SHADE_VOLUME don't seem to be the answer.

What extra incantation(s) do I need to get the axes labeled properly?

Thanks in advance,

Richard Edgar
[Message index]
 
Read Message
Read Message
Previous Topic: Re: contour on map
Next Topic: Re: Benchmark update

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

Current Time: Fri Oct 10 13:39:43 PDT 2025

Total time taken to generate the page: 0.08043 seconds