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

Home » Public Forums » archive » What is 'iadj' and 'iend' in TRIANGULATION?
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
What is 'iadj' and 'iend' in TRIANGULATION? [message #62751] Wed, 01 October 2008 07:14 Go to next message
Karlo Janos is currently offline  Karlo Janos
Messages: 31
Registered: July 2008
Member
Hello all!

I'd like to use IDL's function TRIANGULATION for determining the
nearest neighbor on the surface of a sphere. Unfortunately the keyword
'CONNECTIVITY' doesn't work together with 'SPHERE'. But I found in the
struct of SPHERE the fields 'iadj' and 'iend'. What do they mean? I did
not find any explanation about this struct.
Best regards

Karlo
Re: What is 'iadj' and 'iend' in TRIANGULATION? [message #62787 is a reply to message #62751] Mon, 06 October 2008 07:36 Go to previous message
Karlo Janos is currently offline  Karlo Janos
Messages: 31
Registered: July 2008
Member
Well, here is the solution for my problem.
Look at the declaration of the SUBROUTINE TRMESH in
http://www.netlib.org/toms/623 or http://www.netlib.org/toms/624.
There you find the definition for IADJ and IEND.
But: The indices contained in IADJ and IEND are not zero-based! Even in
the struct used in IDL. That's a little bit confusing. So you have to
correct for that, when you use these fields for a different purpose
than for TRIGRID.
Greets

Karlo
Re: What is 'iadj' and 'iend' in TRIANGULATION? [message #62805 is a reply to message #62751] Sat, 04 October 2008 04:16 Go to previous message
Karlo Janos is currently offline  Karlo Janos
Messages: 31
Registered: July 2008
Member
> The output of the SPHERE keyword is designed to be passed to the
> TRIGRID function. The TRIANGULATE helpfile states that 'The structure
> contains the 3D Cartesian locations sample points

Indeed, that's easy to understand, because the field is called ".XYZ".


> and the adjacency
> list that describes the triangulation.', so I'm guessing .iadj
> and .iend are fields that contain information about the adjacency
> list.
> If you want to find out what the arrays in these structure fields
> actually _mean_, then I'm afraid I'm no use to you! :-/

That is the point. I want to know how to interpret the numbers in these
structure fields .IADJ (sounds like adjacency) and .IEND (no idea what
that means). But it does not seem to be the same principle as if I would
use the CONNECTIVITY keyword to get the adjacency list in planar
gridding (there is nothing like .IEND).
Thanks for your guess!

Karlo
Re: What is 'iadj' and 'iend' in TRIANGULATION? [message #62817 is a reply to message #62751] Fri, 03 October 2008 06:33 Go to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Oct 1, 3:14 pm, "Karlo Janos" <idl.20.beam...@spamgourmet.com>
wrote:
> Hello all!
>
> I'd like to use IDL's function TRIANGULATION for determining the
> nearest neighbor on the surface of a sphere. Unfortunately the keyword
> 'CONNECTIVITY' doesn't work together with 'SPHERE'. But I found in the
> struct of SPHERE the fields 'iadj' and 'iend'. What do they mean? I did
> not find any explanation about this struct.
> Best regards
>
> Karlo

Hi Karlo,

The output of the SPHERE keyword is designed to be passed to the
TRIGRID function. The TRIANGULATE helpfile states that 'The structure
contains the 3D Cartesian locations sample points and the adjacency
list that describes the triangulation.', so I'm guessing .iadj
and .iend are fields that contain information about the adjacency
list. Have a look at Example 2 in the TRIGRID helpfile.

If you want to find out what the arrays in these structure fields
actually _mean_, then I'm afraid I'm no use to you! :-/

Regards,
Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Degree of Polarization
Next Topic: Debugging C code called from CALL_EXTERNAL

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

Current Time: Wed Oct 08 13:59:27 PDT 2025

Total time taken to generate the page: 0.00450 seconds