I have a file with coordinates {x, y,z} of a fcc lattice.
In[0]: data = Import[
"D:\\AtomsDiffusion\\AtomsDiffusion\\bin\\PositionsAtomsMathematica.\
txt", "CSV"]
Out[0]: {{0, 0, 0}, {0, 0.707, 0.707}, {0.707, 0, 0.707}, {0.707, 0.707,
0}, {0, 0, 1.414}, {0, 0.707, 2.121}, {0.707, 0, 2.121}, {0.707,
0.707, 1.414}, {0, 1.414, 0}, {0, 2.121, 0.707}, {0.707, 1.414,
0.707}, {0.707, 2.121, 0}, {0, 1.414, 1.414}, {0, 2.121,
2.121}, {0.707, 1.414, 2.121}, {0.707, 2.121, 1.414}, {1.414, 0,
0}, {1.414, 0.707, 0.707}, {2.121, 0, 0.707}, {2.121, 0.707,
0}, {1.414, 0, 1.414}, {1.414, 0.707, 2.121}, {2.121, 0,
2.121}, {2.121, 0.707, 1.414}, {1.414, 1.414, 0}, {1.414, 2.121,
0.707}, {2.121, 1.414, 0.707}, {2.121, 2.121, 0}, {1.414, 1.414,
1.414}, {1.414, 2.121, 2.121}, {2.121, 1.414, 2.121}, {2.121, 2.121,
1.414}};
Using the function Graphics3D, I draw the coordinates:
In[1]: Graphics3D[{Opacity[.6], Ball[#, 0.5] & /@ data}, Axes -> True]
How can I draw grid lines vertical, horizontal and diagonal,to be like here? example
