function sizeBox(geometry) {
  'use strict';

  geometry.computeBoundingBox();
  return geometry.boundingBox.getSize();
}

function widthBox(geometry) {
  'use strict';

  return sizeBox(geometry).x;
}

function heightBox(geometry) {
  'use strict';

  return sizeBox(geometry).y;
}

function depthBox(geometry) {
  'use strict';

  return sizeBox(geometry).z;
}

window.sizeBox = sizeBox;
window.widthBox = widthBox;
window.heightBox = heightBox;
window.depthBox = depthBox;

(() => {
  'use strict';

  function sizeBox(geometry) {
    geometry.computeBoundingBox();
    return geometry.boundingBox.getSize();
  }

  Object.assign(window, {
    sizeBox,
    widthBox: geometry => sizeBox(geometry).x,
    heightBox: geometry => sizeBox(geometry).y,
    depthBox: geometry => sizeBox(geometry).z,
  });
})();

Simplify bounding-box size helper functions.
lathe[cuboid]: Simplify bounding-box size helper functions.
