app/static/js/main.js
// updates hover boxes and changes their colors to blue
updates hover boxes and changes their colors to blue
updates hover boxes and changes their colors to blue
function updateHoverBoxes(v) {
    if (!isMoving) {
        hoverBoxes = [];
        for (var i = 0; i < boundingBoxes.length; i++) {
            var box = boundingBoxes[i];
            if (v && containsPoint(box, v)) {
                hoverBoxes.push(box);
            }
            if (box != selectedBox) {
                box.changeBoundingBoxColor(default_color.clone());
            }
        }
        if (hoverBoxes.length == 1) {
            var box = hoverBoxes[0];
            if (box != selectedBox) {
                box.changeBoundingBoxColor(hover_color.clone());
            }
        }
    }
}
function updateHoverBoxes ( v ) { if ( ! isMoving ) { hoverBoxes = [ ] ; for ( var i = 0 ; i < boundingBoxes . length ; i ++ ) { var box = boundingBoxes [ i ] ; if ( v && containsPoint ( box , v ) ) { hoverBoxes . push ( box ) ; } if ( box != selectedBox ) { box . changeBoundingBoxColor ( default_color . clone ( ) ) ; } } if ( hoverBoxes . length == 1 ) { var box = hoverBoxes [ 0 ] ; if ( box != selectedBox ) { box . changeBoundingBoxColor ( hover_color . clone ( ) ) ; } } } }
updates hover boxes and changes their colors to blue
updates hover boxes and changes their colors to blue
// added box to boverBoxes if cursor is within bounding box // checks if box is selectedBox, if so changes color back to default // update color of hover box if only one box is hovered // box.changeBoundingBoxColor(new THREE.Color( 7,0,0 ) );