This is essentially a refinement of the code for the Ultimate Extruder Calibration Test.
Cleaned up alot of redundant code in the math and also fixed a few of the calculations so the variables would work correctly if changed from default settings.
Why you ask, well thats where the second part comes in.
I've added a bit of code that lets you only print the bridges that fail after the first run making it quicker to calibrate settings, as ths object progressivly gets smaller, requiring less material and time to print.
First generate STL with the variable "broken" set to 0 and slice and print
Once this is done take the result and see how many brdiges can be broken off by hand (Basically stop where your happy with the strength and minimal sag)
Now set variable "broken" to the number you broke (a little obvious that)
recompile and generate STL
tweak settings and print the new STL which will only be the bridges that broke plus one.
rince and repeat til you get back to 0 or get to a point that you are happy with.
Kudos to Starno for the original