( self )
| 409 | self.assertTrue( m.numFaces() < m2.numFaces() ) |
| 410 | |
| 411 | def testLegacyIndices( self ) : |
| 412 | |
| 413 | # load a legacy file that contains myString and myStringIndices |
| 414 | m = IECore.Reader.create( os.path.join( "test", "IECore", "data", "cobFiles", "cube.cob" ) ).read() |
| 415 | self.assertEqual( m.keys(), [ "P", "myString" ] ) |
| 416 | self.assertTrue( m.isPrimitiveVariableValid( m["myString"] ) ) |
| 417 | self.assertEqual( m["myString"].interpolation, IECoreScene.PrimitiveVariable.Interpolation.Vertex ) |
| 418 | self.assertEqual( m["myString"].data, IECore.StringVectorData( [ "indexed", "my", "string" ] ) ) |
| 419 | self.assertEqual( m["myString"].indices, IECore.IntVectorData( [ 1, 0, 2, 1, 0, 2, 1, 0 ] ) ) |
| 420 | |
| 421 | def testSphereIndexing( self ) : |
| 422 |
nothing calls this directly
no test coverage detected