automatic structure generation implemented

Simple version of automatic support structure generation (experimental)