Package cofh.repack.codechicken.lib.vec

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


   * @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

Related Classes of cofh.repack.codechicken.lib.vec.Cuboid6

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.