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.

Reply via email to