for (int t = 0, fSize = facing.size(); t < fSize; t++) {
index.rewind();  for (int t = 0; t < maxIndex; t++) {
    private void edgeConnected(int face, IntBuffer index, int index1, int index2,            ShadowEdge edge) {        edge.p0 = index1;        edge.p1 = index2;        for (int t = 0, fSize = facing.size(); t < fSize; t++) {            if (t != face) {                int offset = t * 3;                int t0 = index.get(offset), t1 = index.get(offset+1), t2 = index.get(offset+2);                if ((t0 == index1 && t1 == index2)                        || (t1 == index1 && t2 == index2)                        || (t2 == index1 && t0 == index2)                        || (t0 == index2 && t1 == index1)                        || (t1 == index2 && t2 == index1)                        || (t2 == index2 && t0 == index1)) {                    // Edges are connected                    edge.triangle = t;                    return;                }            }        }    }