Actually, there were some < 0. But the following still didn't fix it:

` if (uv1.get(0) > 1f)`

uv1.set(0, uv1.get(0)-1f);

else if (uv1.get(0) < 0f)

uv1.set(0, uv1.get(0)+1f);

if (uv1.get(1) > 1f)

uv1.set(1, uv1.get(1)-1f);

else if (uv1.get(1) < 0f)

uv1.set(1, uv1.get(1)+1f);

if (uv2.get(0) > 1f)

uv2.set(0, uv2.get(0)-1f);

else if (uv2.get(0) < 0f)

uv2.set(0, uv2.get(0)+1f);

if (uv2.get(1) > 1f)

uv2.set(1, uv2.get(1)-1f);

else if (uv2.get(1) < 0f)

uv2.set(1, uv2.get(1)+1f);

if (uv3.get(0) > 1f)

uv3.set(0, uv3.get(0)-1f);

else if (uv3.get(0) < 0f)

uv3.set(0, uv3.get(0)+1f);

if (uv3.get(1) > 1f)

uv3.set(1, uv3.get(1)-1f);

else if (uv3.get(1) < 0f)

uv3.set(1, uv3.get(1)+1f);