In QGIS using the Geometry generator, how can we generate the square points within a polygon (e.g. built-up layer) that parallel with other features (e.g. road layer) like in the map below?

[![enter image description here][1]][1]

  [1]: https://i.sstatic.net/jIahF.png