def makeSingleTriangleMesh(self):
    verticesPerFace = IECore.IntVectorData([3])
    vertexIds = IECore.IntVectorData([0, 1, 2])
    p = IECore.V3fVectorData([imath.V3f(0, 0, 0), imath.V3f(1, 0, 0), imath.V3f(0, 1, 0)])
    uv = IECore.V2fVectorData([imath.V2f(0, 0), imath.V2f(1, 0), imath.V2f(0, 1)])
    mesh = IECoreScene.MeshPrimitive(verticesPerFace, vertexIds, 'linear', p)
    mesh['uv'] = IECoreScene.PrimitiveVariable(IECoreScene.PrimitiveVariable.Interpolation.FaceVarying, uv)
    mesh['foo'] = IECoreScene.PrimitiveVariable(IECoreScene.PrimitiveVariable.Interpolation.FaceVarying, IECore.V2fVectorData([imath.V2f(0, 0), imath.V2f(0, 1), imath.V2f(1, 0)]))
    prefData = IECore.V3fVectorData([imath.V3f(0, 0, 0), imath.V3f(0, (- 1), 0), imath.V3f(1, 0, 0)])
    mesh['Pref'] = IECoreScene.PrimitiveVariable(IECoreScene.PrimitiveVariable.Interpolation.Vertex, prefData)
    return mesh
def makeSingleTriangleMesh(self):
    verticesPerFace = IECore.IntVectorData([3])
    vertexIds = IECore.IntVectorData([0, 1, 2])
    p = IECore.V3fVectorData([imath.V3f(0, 0, 0), imath.V3f(1, 0, 0), imath.V3f(0, 1, 0)])
    uv = IECore.V2fVectorData([imath.V2f(0, 0), imath.V2f(1, 0), imath.V2f(0, 1)])
    mesh = IECoreScene.MeshPrimitive(verticesPerFace, vertexIds, 'linear', p)
    mesh['uv'] = IECoreScene.PrimitiveVariable(IECoreScene.PrimitiveVariable.Interpolation.FaceVarying, uv)
    mesh['foo'] = IECoreScene.PrimitiveVariable(IECoreScene.PrimitiveVariable.Interpolation.FaceVarying, IECore.V2fVectorData([imath.V2f(0, 0), imath.V2f(0, 1), imath.V2f(1, 0)]))
    prefData = IECore.V3fVectorData([imath.V3f(0, 0, 0), imath.V3f(0, (- 1), 0), imath.V3f(1, 0, 0)])
    mesh['Pref'] = IECoreScene.PrimitiveVariable(IECoreScene.PrimitiveVariable.Interpolation.Vertex, prefData)
    return mesh