Hello all.  A very simple question, the answer to which may help unlock
OpenDX for me.  I am trying to create a glyph, and as a test case I want to
make a cube.  I have set up a DX file cube.dx containing the geometry:

# The following example describes an irregular grid. Note that the values
# of the "positions" component and "connections" component are irregular,
# and so must be enumerated.  It is a cube.
#
# The irregular positions, which are 8 three-dimensional points.
object 1 class array type float rank 1 shape 3 items 8 data follows
        -0.05        -0.05          0.1
         0.05        -0.05          0.1
         0.05         0.05          0.1
        -0.05         0.05          0.1
        -0.05        -0.05          0.0
         0.05        -0.05          0.0
         0.05         0.05          0.0
        -0.05         0.05          0.0
# The irregular connections, which are 6 quads
object 2 class array type int rank 1 shape 4 items 6 data follows
        1         0         2         3
        1         2         5         6
        2         3         6         7
        3         0         7         4
        0         1         4         5
        5         6         4         7
attribute "element type" string "quads"
attribute "ref" string "positions"
# The data, which is in a one-to-one correspondence with the positions
object 3 class array type float rank 0 items 8 data follows
       2            2            2            2            3
       3            3            3
attribute "dep" string "positions"
# the field, with three components: "positions", "connections", and
# "data"
object "irregular positions irregular connections" class field
component "positions" value 1
component "connections" value 2
component "data" value 3
end

In a simple .net file I use Import -> ShowConnections -> Image to satisfy
myself that this is a cube, but I can't figure out the next step, how to
make the surfaces visible.  The sample AutoGlyph3DScalar.net uses Construct
-> Connect -> Shade, but I want to set up the geometry in a .dx file.
Please provide guidance.

Thanks
Gib

NOTICE - This e-mail is only intended to be read by the named recipient.  It
may contain information which is confidential, proprietary or the subject of
legal privilege. If you are not the intended recipient please notify the
sender immediately and delete this e-mail. You may not use any information
contained in it.  Legal privilege is not waived because you have read this
e-mail.

For further information on the Beca Group of Companies, visit our web page
http://www.beca.co.nz

Reply via email to