Package com.xith3d.scenegraph

Examples of com.xith3d.scenegraph.Bounds


  protected float getSceneSize() {
    boolean autocompute = scene.getBranchgroup().getBoundsAutoCompute();
    scene.getBranchgroup().setBoundsAutoCompute(true);
    scene.getBranchgroup().updateBounds(true);
    scene.getBranchgroup().setBoundsAutoCompute(autocompute);
    Bounds bounds = scene.getBranchgroup().getBounds();
    // Should be the case for xith3d
    if (bounds instanceof Sphere) {
      return ((Sphere)bounds).getRadius();
    }
    // else, include this bounds object in a bounding sphere and get radius
View Full Code Here

TOP

Related Classes of com.xith3d.scenegraph.Bounds

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.