cubic pattern