407408409410411412413414415416417
} } 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)); } }
11761177117811791180118111821183118411851186
* @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; }