3d-printed logic gate