Package ca.eandb.jmist.framework

Examples of ca.eandb.jmist.framework.BoundingBoxBuilder3


    private ShadingContext emitterContext;

    private int strandIndex;

    public Box3 boundingBox() {
      BoundingBoxBuilder3 bound = new BoundingBoxBuilder3();
      for (Point3 vertex : vertices) {
        bound.add(vertex);
      }
      return bound.getBoundingBox();
    }
View Full Code Here


  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.SceneElement#getBoundingBox(int)
   */
  public Box3 getBoundingBox(int index) {

    BoundingBoxBuilder3 builder = new BoundingBoxBuilder3();

    Box3 childBoundingBox = geometry.getBoundingBox(index);
    for (int i = 0; i < 8; i++) {
      builder.add(this.model.apply(childBoundingBox.corner(i)));
    }

    return builder.getBoundingBox();

  }
View Full Code Here

    /* (non-Javadoc)
     * @see ca.eandb.jmist.framework.Bounded3#boundingBox()
     */
    public Box3 boundingBox() {
      BoundingBoxBuilder3 builder = new BoundingBoxBuilder3();
      for (int i = 0; i < indices.length; i++) {
        builder.add(vertices.get(indices[i]));
      }
      return builder.getBoundingBox();
    }
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.Bounded3#boundingBox()
   */
  public Box3 boundingBox() {
    BoundingBoxBuilder3 builder = new BoundingBoxBuilder3();
    for (SceneElement child : children) {
      builder.add(child.boundingBox());
    }
    return builder.getBoundingBox();
  }
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.BoundingBoxBuilder3

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.