Canvas Height and Width of 3D element

How can I get height and width of the 3D element (a box may be) once it is drawn on canvas??

You could use worldToScreen on the corners of the bounding box of an object perhaps?