Q: is there a formula to figure out what polygons have a flat side at the bottom when creating the first line at the right side?
A: sure. of course you'd have to know what angle that first line is at