<html><div style='background-color:'><DIV>
<P>Hi Bill,</P>
<P>Thank you for your soon reply. 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>>From: Bill Hibbard <BILLH@xxxxxxxxxxxxx>
<DIV></DIV>>To: Jing Zhang <GOLDLION888@xxxxxxxxxxx>
<DIV></DIV>>CC: visad-list@xxxxxxxxxxxxx
<DIV></DIV>>Subject: Re: Question about road display
<DIV></DIV>>Date: Sun, 12 Jan 2003 20:36:30 -0600 (CST)
<DIV></DIV>>
<DIV></DIV>>Hi Jing,
<DIV></DIV>>
<DIV></DIV>> > I 've successfully created 3D terrain by using Visad. Now,
I want to draw
<DIV></DIV>> > a road on 3D terrain. The road will be realized by drawing
line between
<DIV></DIV>> > vector point.(Here, I'm going to use Gridded3DSet) But the
vector point
<DIV></DIV>> > information that I readed from a special file(VMAP) only
includes X and Y
<DIV></DIV>> > value, no Z value(elevation value). How can I draw the
road up and down
<DIV></DIV>> > along with the 3D terrain.(Not just float on the 3D
terrain) If I can get
<DIV></DIV>> > Z values from the 3D terrain according to X,Y values, I
may can draw a
<DIV></DIV>> > road as what I thought. But I have no idea about how to
retrive Z values
<DIV></DIV>> > from the 3D terrain.
<DIV></DIV>> > If you can give me any suggestion, I will be very
thankful.
<DIV></DIV>>
<DIV></DIV>>If you have an (x, y) value in a RealTuple, and your terrain
<DIV></DIV>>in a FlatField with MathType ((x, y) -> z), then you can get
<DIV></DIV>>the z value by passing the RealTuple to the evaluate(RealTuple)
<DIV></DIV>>method of the FlatField.
<DIV></DIV>>
<DIV></DIV>>Good luck,
<DIV></DIV>>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>