here the mechanics build the cartesian grid

path on GitHub

random