The following JavaScript is a simplified version of the bounding box example – provided in the Developer Examples section of the “quick_start” menu. The JS distills the original bounding box example into three components: bounding box markup, the callback and the selection function. To see it in action, launch “quick_start” and choose any of the sample models. In the web browser console, past paste the JS below and that’s it. When making a selection, a bounding box is drawn.
...