functiondisplay_width(type)=type[2];//! Width of the metal part
functiondisplay_height(type)=type[3];//! Depth of the metal part
functiondisplay_thickness(type)=type[4];//! Height of the metal part
functiondisplay_pcb(type)=type[5];//! PCB mounted on the back
functiondisplay_pcb_offset(type)=type[6];//! 3D offset of the PCB centre
functiondisplay_aperture(type)=type[7];//! Size of the aperture including its depth
functiondisplay_touch_screen(type)=type[8];//! Touch screen position and size
functiondisplay_threads(type)=type[9];//! Length that studs protrude from the PCB holes
functiondisplay_ribbon(type)=type[10];//! Keep out region for ribbon cable
functiondisplay_ts_thickness(type)=let(ts=display_touch_screen(type))ts?ts[1].z:0;//! Touch screen thickness or 0
functiondisplay_depth(type)=display_ts_thickness(type)+display_thickness(type)+display_pcb_offset(type).z+pcb_thickness(display_pcb(type));//! Total thickness including touch screen and PCB
moduledisplay_aperture(type,clearance,clear_pcb=false){//! Make aperture cutout