As in Minecraft?
Yes there's! Mostly in Japan - they are bred so… In a box!
The pictured body has 8 corners.
If you let a melon grow in a corresponding vessel, it could work approximately.
Angular fruits are possible. For this, the young fruit is squeezed into a mold and then adapts to it during growth.