MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testGetGeometricInterpretation

Method testGetGeometricInterpretation

test/IECore/DataAlgoTest.py:43–50  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

41class DataAlgoTest( unittest.TestCase ) :
42
43 def testGetGeometricInterpretation( self ) :
44
45 self.assertEqual( IECore.GeometricData.Interpretation.Vector, IECore.getGeometricInterpretation( IECore.V3fVectorData( [], IECore.GeometricData.Interpretation.Vector ) ) )
46 self.assertEqual( IECore.GeometricData.Interpretation.Normal, IECore.getGeometricInterpretation( IECore.V3fVectorData( [], IECore.GeometricData.Interpretation.Normal ) ) )
47 self.assertEqual( IECore.GeometricData.Interpretation.Point, IECore.getGeometricInterpretation( IECore.V3fData( imath.V3f( 1 ), IECore.GeometricData.Interpretation.Point ) ) )
48 self.assertEqual( IECore.GeometricData.Interpretation.None_, IECore.getGeometricInterpretation( IECore.V3fData( imath.V3f( 1 ), IECore.GeometricData.Interpretation.None_ ) ) )
49 self.assertEqual( IECore.GeometricData.Interpretation.None_, IECore.getGeometricInterpretation( IECore.FloatData( 5 ) ) )
50 self.assertEqual( IECore.GeometricData.Interpretation.None_, IECore.getGeometricInterpretation( IECore.StringData( "foo" ) ) )
51
52 def testSetGeometricInterpretation( self ) :
53

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected