| Re: contour plot at max z of surface in obj. graphics [message #18671] |
Thu, 20 January 2000 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Todd Bowers (tbowers@nrlssc.navy.mil) writes:
> I'm adding functionality to D Fanning's xsurface program. What
> I'm doing is adding the ability to import a different data set
> and vis. it as a contour positioned at the max z axis value (i.e.,
> on "top" of the surface object, a la Fanning's book p. 100 or the
> show3 procedure, both in direct graphics). Since my vis. space is
> normalized with his Normalize procedure, I thought it would be as
> simple as setting geomZ=0.5, the "top" of z, and maybe the setting
> planar=1. Doesn't work. 1 data set ranges ~ -300 - +200 in z value,
> while the other ranges ~ 0 - 5. Screwing around with the geomZ value
> doesn't give me a good indication of it's behavior because it the
> contour seems to move up and down in different ways depending on
> which data I choose as the surface and which I choose to overlay
> as the contour. Can anybody enlighten me on this?
Uh, no, I can't enlighten you. I'm teaching an object graphics
class this week and I have my hands full keeping up there. :-)
But I, too, have fooled around with the XSurface functionality,
and here is an example where I added a Contour plot and you
can move it up and down the Z axis by means of a slider.
ftp://www.dfanning.com/pub/dfanning/outgoing/misc/surf_conto ur.pro
My comments in the code suggest I was trying to set the
contour plot's GEOMZ property. However, it looks like I gave
up on the idea in the final code, because what I ended up
doing is putting the contour plot in its own model and just
translating that. I'd have to investigate why I did this,
but I just don't have the time this week. Perhaps you
can sort it out and let us know. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|