break the monolithic script up into configuration, a library of functions shared by the 3D model generation and the 2D CAD file generator