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

Home » Public Forums » archive » speher keyword of qhull
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
speher keyword of qhull [message #51184] Wed, 08 November 2006 06:21 Go to next message
sebinjapan is currently offline  sebinjapan
Messages: 14
Registered: June 2004
Junior Member
hello,

Does anyone knows was is returned in the sphere variable when using:
qhull, v0, v1, tr, /delaunay, sphere = s

seb
Re: speher keyword of qhull [message #51266 is a reply to message #51184] Fri, 10 November 2006 10:01 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
sorry about being dense here, but how are qtr and q_sphere related?


Andy Heaps wrote:
> 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
>> ;***************************************************
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: speher keyword of qhull
Next Topic: Re: Plot 3-D markers in iPlot

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

Current Time: Wed Oct 08 18:38:22 PDT 2025

Total time taken to generate the page: 0.00578 seconds