Section of a cube parallel to the plane with magnets
Insert the magnets after the print is finish (6x3mm)