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

Home » Public Forums » archive » Re: placing polylines/polygons exactly on a surface?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: placing polylines/polygons exactly on a surface? [message #47164] Fri, 27 January 2006 03:56
Weihua FANG is currently offline  Weihua FANG
Messages: 26
Registered: January 2006
Junior Member
hi, Antonio,

Your solution works well to my application.

thanks. :-)

Weihua
Re: placing polylines/polygons exactly on a surface? [message #47165 is a reply to message #47164] Fri, 27 January 2006 02:27 Go to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Hello Weihua,

I supose the elevation of your surface and your roads are not exactly
the same, because this the road is sometimes over/under the surface.

One solution can be using the DEPTH_TEST_DISABLE in your road polygon.
This makes your roads will be drawn on top of other objects.

Also, from your road coordenates you can calcula the correspondiing
points and paint it with a different color.

I hope this will be useful for you.

Bye.



Weihua FANG wrote:
> Hi, all
>
> A 3D visualization of roads is to be created with 3 types of data:
> a) elevation data: elev(m,m): a 2 dimensional array
> b) a satellite image for texture: image_sate (m, m): a 2-dimensional
> array
> c) road lines, road_vertex (3, n, n): a 3-by-n floating-point array
> representing a 3-D vertex
>
> I did it by the following steps:
> 1) created an IDLgrSurface Object and set DATAZ property to elevation
> array
> 2) set the texture of the surface to the satellite image array
>
> things worked fine till now.
>
> 3) created an IDLgrPolyline Object and set the DATA property to
> road_vertex.
>
> the road line is not exactly on the surface. Some parts of the line
> are over and the rest are inner the surface.
>
> I am wondering, how to place polylines or polygons exactly on a
> surface? I found IDLgrContour object can display contours on a surface
> quite well though.
>
> Can someone please give me some hints?
>
> Thanks a lot.
>
> Fang
>


--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Swap memory utilization by IDL
Next Topic: Problem of precedence with pointer and structure

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

Current Time: Wed Oct 08 15:16:28 PDT 2025

Total time taken to generate the page: 0.00462 seconds