Users Guide Appendix B, DX Native File Format (see examples especially)

Make a file like this:

#positions component (your points)
object "my_pos" class array type float rank 1 shape 3 items 120 data follows
# list your 3-vector positions here, this example has 120, change the number above to match your count
x y z
x y z
...

#connections component (1-D line in 3-space)
object "my_conn" class gridconnections counts 120 #match this number to point count

#data component (optional)
object "my_data" class array type (float, int, whatever) rank 0 (scalar) | rank 1 (vector) shape (1,2,3,etc: no. of vector
components per data vector) items 120 data follows
# list your data items here; example has 120 so data is position dependent, change number to match positions
d
d
...
attribute "dep" string "positions" #required attribute

#the field
object "my_field" class field
component "positions" value "my_pos"
component "connections" value "my_conn"
component "data" value "my_data

Save as myfield.dx.

Import, Autocolor, ShowConnections, Tube, Image.



On Friday, May 30, 2003, at 21:03 America/New_York, Viatcheslav G. Merkine wrote:

Hi all,

After several hours searching the internet for the answer to this question I
finally turn to this list. I have the following problem. I have a number of
points in 3D. In fact, the points lie on some 3D curve which I want to
visualize. I import the data into OpenDX so that I have a field with 3D
positions component (coordinates of the points) and some fake data component.
If I had only to plot the points there would be no problem: I could just feed
imported data to "image" module directly (with addition of color, of course).
But I need to feed this stuff to the "tube" module to make the line fat and
in order to do that the object should be a line. As far as I understand there
should be a 1D connections component but how do I create it? I can do it from
outside OpenDX when I write the data into the file but I don't know the
format.

Any suggestions? Thanks a lot,

--
Slava Merkin
Space Plasma Physics Group
Department of Physics, University of Maryland
College Park, MD, USA 20742




_______________________________
Chris Pelkie
Scientific Visualization Producer
622 Rhodes Hall, Cornell Theory Center
Ithaca, NY 14853

Reply via email to