Mike,

What you really want to do (IMHO) is to figure out how to create an OpenDX
object that meets your needs.  Best way to do that is to fake together some
data the way you want it, then Export it so that you can look at the
object.  So.  You want a 2-D sheet in 3 space with 73 x 121 positions.  Use
Construct to create one, a little fiddling to force an irregular positions
component, and Export, with the third arg "dx ascii 2" - eg. use ascii, as
opposed to , and use 2 files: one containing header info, and the other the
positions.  Here's the net:

(See attached file: faker.net)

And here's the header file:

object 1 class gridconnections counts 73 121
attribute "element type" string "quads"
attribute "dep" string "connections"
attribute "ref" string "positions"
#
object 2 class array type float rank 1 shape 3 items 8833 data file fake.data,0
attribute "dep" string "positions"
#
object "default" class field
component "connections" value 1
component "positions" value 2
#
end

The data is simply
X0 Y0 Z0
...
X8832 Y8832 Z8832

So substitute your own datafile for fake.data in the above.

Now you want to render it as a surface and show "contour lines".  The surface 
is easy - add,
colors and normals, and you're ready to go.  The "contours" (as I understand 
it) are easy too - you have
regular connections - so all you have to do is request Slabs of lower dimension 
(quads yield lines),
then color them, add some fuzz so they show up on top of the surface.  So 
combine the surface and
contour data and render, and you're done.

Here's the demo net.

(See attached file: demo.net)

Greg

Attachment: faker.net
Description: Binary data

Attachment: demo.net
Description: Binary data

Reply via email to