Cubic Lattice

Build a cubic lattice:

using CairoMakie
using LatticeMaker
L = CubicLattice(2, 3, 4)
Lattice{3}(UnitCell{3}(((1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0)), [(0.0, 0.0, 0.0)], [(1, (1, 0, 0), 1), (1, (0, 1, 0), 1), (1, (0, 0, 1), 1)]), (2, 3, 4), (false, false, false))

Get the edges of the lattice:

edges(L)
46-element Vector{Vector{Int64}}:
 [1, 13]
 [1, 5]
 [1, 2]
 [13, 17]
 [13, 14]
 [5, 17]
 [5, 9]
 [5, 6]
 [17, 21]
 [17, 18]
 ⋮
 [11, 12]
 [23, 24]
 [4, 16]
 [4, 8]
 [16, 20]
 [8, 20]
 [8, 12]
 [20, 24]
 [12, 24]

Plot the lattice:

plot_lattice(L)
Example block output