I'm trying to write the first stage of a script that generates support structures for 3D printed objects and could really use some help

Thanks!