UPDATE: "generating square?", if 1, makes it generate a grid-like structure instead of an n-gon, and if it is 2, it generates crosses as well. "size" says how large the object you generate is. For "generating square" to function like it should, I recommend setting "gravity" to 0.1. you can now press "g" to make the selected point stationary! press "s" to show/hide variables. press space to reset variables. for "resistance" and "sides" and "generating square?" to work you have to restart the project. you can click on the points and move them around. if you have "showing stress?" on 1, red means squashed and blue means stretched.
100% my code. made in about 7 hours. let me know if you want an explanation on how it works for some reason this reminded me of the brilliant logo :0