Examples of Cuboid6


Examples of codechicken.lib.vec.Cuboid6

    public Cuboid6 getBounds(){
        if(boundingBoxes == null) {
            boundingBoxes = new Cuboid6[6];
            for(int i = 0; i < 6; i++) {
                AxisAlignedBB aabb = module.boundingBoxes[i];
                boundingBoxes[i] = new Cuboid6(aabb.minX, aabb.minY, aabb.minZ, aabb.maxX, aabb.maxY, aabb.maxZ);
            }
        }
        return boundingBoxes[module.getDirection().ordinal() % 6];
    }
View Full Code Here

Examples of cofh.repack.codechicken.lib.vec.Cuboid6

      }
    }

    public void extractQuads(List<QBQuad> quads) {

      Cuboid6 box = c.bounds();
      for (int s = 0; s < 6; s++) {
        if ((sides & 1 << s) == 0) {
          quads.add(extractQuad(s, box));
        }
      }
View Full Code Here

Examples of cofh.repack.codechicken.lib.vec.Cuboid6

   * @return A Cuboid6 containing all the verts in this model
   */
  public Cuboid6 bounds() {

    Vector3 vec1 = verts[0].vec;
    Cuboid6 c = new Cuboid6(vec1.copy(), vec1.copy());
    for (int i = 1; i < verts.length; i++) {
      c.enclose(verts[i].vec);
    }
    return c;
  }
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.