speher keyword of qhull [message #51184] |
Wed, 08 November 2006 06:21  |
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  |
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
>> ;***************************************************
|
|
|