Convert getTightBound() boundingBox cube into square

I am perfectly getting a Cube around by egg 3d object by getTightBounds() function. instead of a cube I want to Draw a sqaure around it. which perfectly fits the 3D object.

The following thread seems to have an answer for just that question!