def testSingleTriangle(self):
    mesh = self.makeSingleTriangleMesh()
    mesh.blindData()['test'] = IECore.IntData(10)
    meshReversed = mesh.copy()
    IECoreScene.MeshAlgo.reverseWinding(meshReversed)
    self.assertEqual(meshReversed.interpolation, mesh.interpolation)
    for interpolation in IECoreScene.PrimitiveVariable.Interpolation.values.values():
        self.assertEqual(meshReversed.variableSize(interpolation), mesh.variableSize(interpolation))
    self.assertEqual(mesh.keys(), meshReversed.keys())
    self.assertEqual(mesh['P'], meshReversed['P'])
    self.assertEqual(mesh['Pref'], meshReversed['Pref'])
    self.assertEqual(mesh.blindData(), meshReversed.blindData())
    self.assertEqual(list(meshReversed.vertexIds), list(reversed(mesh.vertexIds)))
    self.assertEqual(list(meshReversed['uv'].data), list(reversed(mesh['uv'].data)))
def testSingleTriangle(self):
    mesh = self.makeSingleTriangleMesh()
    mesh.blindData()['test'] = IECore.IntData(10)
    meshReversed = mesh.copy()
    IECoreScene.MeshAlgo.reverseWinding(meshReversed)
    self.assertEqual(meshReversed.interpolation, mesh.interpolation)
    for interpolation in IECoreScene.PrimitiveVariable.Interpolation.values.values():
        self.assertEqual(meshReversed.variableSize(interpolation), mesh.variableSize(interpolation))
    self.assertEqual(mesh.keys(), meshReversed.keys())
    self.assertEqual(mesh['P'], meshReversed['P'])
    self.assertEqual(mesh['Pref'], meshReversed['Pref'])
    self.assertEqual(mesh.blindData(), meshReversed.blindData())
    self.assertEqual(list(meshReversed.vertexIds), list(reversed(mesh.vertexIds)))
    self.assertEqual(list(meshReversed['uv'].data), list(reversed(mesh['uv'].data)))