( self )
| 46 | class SceneAlgoTest( unittest.TestCase ) : |
| 47 | |
| 48 | def writeSCC( self ) : |
| 49 | m = IECoreScene.SceneCache( self.__testFile, IECore.IndexedIO.OpenMode.Write ) |
| 50 | m.writeAttribute( "w", IECore.BoolData( True ), 1.0 ) |
| 51 | |
| 52 | t = m.createChild( "t" ) |
| 53 | t.writeTransform( IECore.M44dData( imath.M44d().translate( imath.V3d( 1, 0, 0 ) ) ), 1.0 ) |
| 54 | t.writeAttribute( "wuh", IECore.BoolData( True ), 1.0 ) |
| 55 | |
| 56 | s = t.createChild( "s" ) |
| 57 | s.writeObject( IECoreScene.SpherePrimitive( 1 ), 1.0 ) |
| 58 | s.writeAttribute( "glah", IECore.IntData( 15 ), 1.0 ) |
| 59 | |
| 60 | s.writeTags( ["tagA", "tagB"] ) |
| 61 | |
| 62 | del s, t, m |
| 63 | |
| 64 | |
| 65 | def writeBigSCC( self ): |
no test coverage detected