Path extrusion script for generating 3D models