001/**
002 * Copyright (c) 2008-2014 Ardor Labs, Inc.
003 *
004 * This file is part of Ardor3D.
005 *
006 * Ardor3D is free software: you can redistribute it and/or modify it 
007 * under the terms of its license which may be found in the accompanying
008 * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
009 */
010
011package com.ardor3d.bounding;
012
013import org.junit.Test;
014
015import com.ardor3d.math.Vector3;
016
017public class TestBounding {
018    @Test
019    public void testBoundingBoxMerge() throws Exception {
020        final BoundingBox obb = new BoundingBox();
021        obb.setCenter(Vector3.ZERO);
022        obb.setXExtent(1);
023        obb.setYExtent(1);
024        obb.setZExtent(1);
025
026        // final ReadOnlyVector3 center = sceneBounds.getCenter();
027        // for (int i = 0; i < _corners.length; i++) {
028        // _corners[i].set(center);
029        // }
030        //
031        // if (sceneBounds instanceof BoundingBox) {
032        // final BoundingBox bbox = (BoundingBox) sceneBounds;
033        // bbox.getExtent(_extents);
034        // } else if (sceneBounds instanceof BoundingSphere) {
035        // final BoundingSphere bsphere = (BoundingSphere) sceneBounds;
036        // _extents.set(bsphere.getRadius(), bsphere.getRadius(), bsphere.getRadius());
037        // }
038
039    }
040}