Sure,
Import the data as you stated below, and run the Import into a Mark
Module (mark positions), then run the Mark and Import into a Compute,
see Below.
Import
|
-----
| |
Mark |
| |
Compute
|
Unmark
|
The expression for Compute should be [a.x, a.y, b]. Then Unmark positions.
The data will still be "z" so if you want all the spheres the same
size, place a compute after the Unmark with the value you want for
the data. Run this into AutoGlyph and viola.
David
Hello,
I have a "data" file that contains only the locations:
Npoints: 1800
0.000000000000000 0.000000000000000 0.000000000000000
-0.707106781186595 -0.707106781186595 0.000000000000000
[snip: 1798 more such lines]
These are the x-y-z coordinates of the my crystal atoms and I
want to use DX to visualize their locations. What I want to do is:
1) read in the locations of the atoms from this file
2) attach in my VPE window a sphere with certain radius to each point
3) visualize that
However, when I do:
file = /home/lahaye/mycrystal.dat
points = marker "Npoints: "
field = locations
header = lines 1
structure = 3-vector
type = float
end
the Import-module complains that there's no data in the file. I do not want
to add dummy-data to the file, since this file is generated by another package
and life would be much easier if DX is able to read that output directly.
I found out that I can "fake" the z-coordinate as "data":
file = /home/lahaye/mycrystal.dat
points = marker "Npoints: "
field = locations, z
header = lines 1
structure = 2-vector, scalar
type = float, float
end
But then: how do I merge (x, y) + "data" => (x,y,z)
Is there a way to overcome this problem ?
Thanks for help and advice!
Rob.
--
.............................................................................
David L. Thompson The University of Montana
mailto:[EMAIL PROTECTED] Computer Science Department
http://www.cs.umt.edu/u/dthompsn Missoula, MT 59812
Work Phone : (406)257-8530