Adapted to Magnum changes.

Now sizing box shapes also with half extents.