edgeLength - edge of cube (positive integer scalar)
nModes - number of modes (positive integer scalar)
Mehul Gajwani, Monash University, 2024