Simulate the Cox point process in 2- or 3-dimensional cube (rectangular cuboid).