LatticeData["SimpleCubic", "Image"]
The above line gives me a single cube (2 lattice points in each direction).
But I want a lattice with 4 lattice points in each direction. How do I generate that?
Answer
It is easy to generate coordinates for these using Tuples
:
coords = Tuples[Range[4], 3]
Graphics3D@Point[coords]
If you need the grid lines too, you can generate a 2D lattice for each face in a similar way and extrude them into lines.
Comments
Post a Comment