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

Home » Public Forums » archive » Re: speher keyword of qhull
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: speher keyword of qhull [message #51285 is a reply to message #51173] Thu, 09 November 2006 07:23 Go to previous message
Andy Heaps is currently offline  Andy Heaps
Messages: 22
Registered: March 2006
Junior Member
ITT-Vis help desk have resolved the query:

The SPHERE keyword to QHULL will return the Delaunay triangulation of
the points which lie on the surface of a sphere. Consider the
following example:

;***************************************************
> pro test
>
> seed = 1
> n = 50
>
> lon = randomu(seed, n) * 360. - 180.
> lat = randomu(seed, n) * 180. - 90.
> f = sin(lon * !dtor)^2 * cos(lat * !dtor)
>
> qhull, lon, lat, qtr, $
> SPHERE = q_sphere, /DELAUNAY
>
> qpolys = lonarr(4,(size(qtr, /DIM))[1])
> qpolys[0,*] = 3
> qpolys[1:3,*] = qtr
>
> q_poly = obj_new('idlgrpolygon', $
> q_sphere, COLOR = [0,255,0], $
> POLYGONS = qpolys, STYLE = 2)
>
> xobjview, q_poly, XSIZE = 400, YSIZE = 400, $
> XOFF = 410, YOFF = 450, $
> TITLE = 'QHULL triangulation'
>
> end
> ;***************************************************
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot 3-D markers in iPlot
Next Topic: speher keyword of qhull

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

Current Time: Thu Oct 09 21:23:23 PDT 2025

Total time taken to generate the page: 1.12030 seconds