function findBoundingBox(){

            var helperbbox = new THREE.BoxHelper( scope.object, 0xff00ff );
            helperbbox.geometry.computeBoundingBox();

            var finalVec = new THREE.Vector3().subVectors(helperbbox.geometry.boundingBox.min, helperbbox.geometry.boundingBox.max);

            return [Math.abs(finalVec.x), Math.abs(finalVec.y), Math.abs(finalVec.z)];
        }
// Estimate bounding box for finding the dimensions
Estimate bounding box for finding the dimensions
Estimate bounding box for finding the dimensions
function findBoundingBox(){
            var helperbbox = new THREE.BoxHelper( scope.object, 0xff00ff );
            helperbbox.geometry.computeBoundingBox();
            var finalVec = new THREE.Vector3().subVectors(helperbbox.geometry.boundingBox.min, helperbbox.geometry.boundingBox.max);
            return [Math.abs(finalVec.x), Math.abs(finalVec.y), Math.abs(finalVec.z)];
        }
function findBoundingBox ( ) { var helperbbox = new THREE . BoxHelper ( scope . object , 0xff00ff ) ; helperbbox . geometry . computeBoundingBox ( ) ; var finalVec = new THREE . Vector3 ( ) . subVectors ( helperbbox . geometry . boundingBox . min , helperbbox . geometry . boundingBox . max ) ; return [ Math . abs ( finalVec . x ) , Math . abs ( finalVec . y ) , Math . abs ( finalVec . z ) ] ; }
Estimate bounding box for finding the dimensions
Estimate bounding box for finding the dimensions