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

Home » Public Forums » archive » 3D-coordinates of index returned MAX()
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
3D-coordinates of index returned MAX() [message #34699] Sun, 06 April 2003 12:32
Alexander Gro� is currently offline  Alexander Gro�
Messages: 7
Registered: April 2003
Junior Member
hi everyone,

I have problems determining the coordinates from the index returned by
MAX(). The online help has an example for that in 2D, but I need a solution
for 3D-space.

What tells me this index? Is something like the pixelnumber in the whole
3D-array? How is this array referenced through the index?

The code looks like this:
nXCoord = nMaxIndex mod size_imgRef_x
nYCoord = nMaxIndex / (size_imgRef_x * size_imgRef_z)
nZCoord = nMaxIndex / (size_imgRef_x * size_imgRef_y)

It does not work for me. Am I just to blind/stupid to see the solution or is
there some difference between 2D and 3D.

Best regards and thanks for your help in advance,

Alex
_______________________________________

Alexander Gro�
Dipl.-Ing. (BA) f�r Informationstechnik
AlexanderGross@gmx.de
http://www.it99.org/axl
+49 (0) 1 75/ 410 72 68
ICQ# 36765668
_______________________________________
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 5.6 Error
Next Topic: VISUALLIZE IT AS IF BURNING THROUGH, SLOWLY

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

Current Time: Wed Oct 08 11:39:37 PDT 2025

Total time taken to generate the page: 0.00518 seconds