This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
a demo of how to convert from cubic to BCC lattice, analog to the tetrahedral | |
or FCC lattice, but without the headache of having to manage an interlaced grid | |
structure as with the usual approach, at the expense of a diagonally skewed | |
non-cubic bounding box in cartesian coordinates. | |
an integer conversion from bcc to cartesian coordinates is as easy as | |
x = -tx+ty+tz |