See Example 6. Product Arrays for the answer
On Wednesday, Sep 24, 2003, at 05:49 America/New_York, Barmaglot Barmaglot wrote:
Dear dx-users,_______________________________
the question seems not to be very obvious:
I still have three arrays (of double)
containing X,Y, and Z coordinates
for the 3D grid points, and
a corresponding 3D volumetric data
(3D array of double). Arrays X,Y,Z
has different numbers of components,
and, of course, the grid is non-equidistant and
non-monotonous. To visualise the data,
I need to build the three-dimensional
array of three-component vectors representing
the "positions" component and then pass it
to the data. To do that, in any programming
language, a construction with three nested loops like
Do iX=0, NGX-1
Do iY=0, NGY-1
Do iZ=0, NGZ-1
Positions(iX,iY,iZ)=Vector(X(ix),Y(iY),Z(iZ))
3*EndDo
is usually employed. What is the way to do that
in DX? Anybody knows how to arrange nested loops?
3*(Thank You),
Semen Neznajko.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Chris Pelkie
Scientific Visualization Producer
622 Rhodes Hall, Cornell Theory Center
Ithaca, NY 14853
