Engineering the boundary between 2D and 3D materials