Examples of BoundingSphere


Examples of javax.media.j3d.BoundingSphere

    theScene.addChild(tgTree);


    //The following four lines generate a white background.
    Background bg = new Background(new Color3f(1.0f,1.0f,1.0f));
    BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0),Double.MAX_VALUE);
    bg.setApplicationBounds(bounds);
    theScene.addChild(bg);


    theScene.compile();
View Full Code Here

Examples of net.rim.device.api.math.BoundingSphere

            // Determine if the sprite's bounds should be a box or a sphere
            if (bounds instanceof BoundingBox) {
                _originalBounds = new BoundingBox((BoundingBox) bounds);
                _bounds = new BoundingBox((BoundingBox) bounds);
            } else {
                _originalBounds = new BoundingSphere((BoundingSphere) bounds);
                _bounds = new BoundingSphere((BoundingSphere) bounds);
            }
        }

        _texcoords = texcoords;
        _textureString = texture;
View Full Code Here

Examples of org.earth3d.jearth.math.BoundingSphere

    if (node == null) return(true);

    /* multiply one vector with the matrix */
//    Point3D v = ((TextureTreeNodeCore *)(node.getCore(0))).vertex[0];

    BoundingSphere bs = node.getBoundingSphere();
    boolean result = frustum.sphereInFrustum((float) bs.center.x, (float) bs.center.y, (float) bs.center.z, (float) bs.radius);

    if (!result) {
      return(result);
    }
View Full Code Here

Examples of org.mt4j.components.bounds.BoundingSphere

   * @see org.mt4j.components.visibleComponents.shapes.AbstractShape#computeDefaultBounds()
   */
  @Override
  protected IBoundingShape computeDefaultBounds(){
//    this.setBounds(new BoundsArbitraryPlanarPolygon(this, this.getVerticesObjSpace())); //Works inly in z=0
    return new BoundingSphere(this);
//    return new BoundingSphere(new OrientedBoundingBox(this);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.