NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Question about road display

<html><div style='background-color:'><DIV>
<P>Hi Bill,</P>
<P>Thank you for your soon reply.&nbsp; I just wonder if there is another way I 
can draw the road.</P>
<P>For example:</P>
<P>I draw the road (2D line) on X-Y plane and then project it to the 3D 
terrain. </P>
<P>Jing<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: Bill Hibbard <BILLH@xxxxxxxxxxxxx>
<DIV></DIV>&gt;To: Jing Zhang <GOLDLION888@xxxxxxxxxxx>
<DIV></DIV>&gt;CC: visad-list@xxxxxxxxxxxxx 
<DIV></DIV>&gt;Subject: Re: Question about road display 
<DIV></DIV>&gt;Date: Sun, 12 Jan 2003 20:36:30 -0600 (CST) 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hi Jing, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; &gt; I 've successfully created 3D terrain by using Visad. Now, 
I want to draw 
<DIV></DIV>&gt; &gt; a road on 3D terrain. The road will be realized by drawing 
line between 
<DIV></DIV>&gt; &gt; vector point.(Here, I'm going to use Gridded3DSet) But the 
vector point 
<DIV></DIV>&gt; &gt; information that I readed from a special file(VMAP) only 
includes X and Y 
<DIV></DIV>&gt; &gt; value, no Z value(elevation value). How can I draw the 
road up and down 
<DIV></DIV>&gt; &gt; along with the 3D terrain.(Not just float on the 3D 
terrain) If I can get 
<DIV></DIV>&gt; &gt; Z values from the 3D terrain according to X,Y values, I 
may can draw a 
<DIV></DIV>&gt; &gt; road as what I thought. But I have no idea about how to 
retrive Z values 
<DIV></DIV>&gt; &gt; from the 3D terrain. 
<DIV></DIV>&gt; &gt; If you can give me any suggestion, I will be very 
thankful. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;If you have an (x, y) value in a RealTuple, and your terrain 
<DIV></DIV>&gt;in a FlatField with MathType ((x, y) -&gt; z), then you can get 
<DIV></DIV>&gt;the z value by passing the RealTuple to the evaluate(RealTuple) 
<DIV></DIV>&gt;method of the FlatField. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Good luck, 
<DIV></DIV>&gt;Bill 
<DIV></DIV></div><br clear=all><hr>Help STOP SPAM: Try the new MSN 8 and <a 
href="http://g.msn.com/8HMHEN/2023";>get 2 months FREE*</a> </html>


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: