return RandomUtil.uniformOnTriangle(a, b, c, ru, vref.seed);
}
// See http://www.terathon.com/code/tangent.html
private Basis3 getBasis(int tri) {
Point2 ta = texCoords.get(texIndices[decomp[tri]]);
Point2 tb = texCoords.get(texIndices[decomp[tri + 1]]);
Point2 tc = texCoords.get(texIndices[decomp[tri + 2]]);
Point3 a = vertices.get(indices[decomp[tri]]);
Point3 b = vertices.get(indices[decomp[tri + 1]]);
Point3 c = vertices.get(indices[decomp[tri + 2]]);