Dummy cube generation improved