Package org.mt4j.components.bounds

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


  /* (non-Javadoc)
   * @see org.mt4j.components.visibleComponents.shapes.AbstractShape#computeDefaultBounds()
   */
  @Override
  protected IBoundingShape computeDefaultBounds() {
    return new BoundingSphere(this);
//    return new OrientedBoundingBox(this));
  }
View Full Code Here

  @Override
  public Vector3D getCenterPointLocal() {
    if (this.hasBounds()){
      return this.getBounds().getCenterPointLocal();
    }else{
      BoundingSphere tempBounds = new BoundingSphere(this);
      return tempBounds.getCenterPointLocal();
    }
  }
View Full Code Here

   
    this.ac = null;
   
    this.setLockPriority(1);
    */
    this(applet, shape, new BoundingSphere(shape));
  }
View Full Code Here

   
   
    @Override
  protected IBoundingShape computeDefaultBounds() {
      return new BoundingSphere(this);
  }
View Full Code Here

TOP

Related Classes of org.mt4j.components.bounds.BoundingSphere

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.