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

Method compareBBox

test/IECoreScene/LinkedSceneTest.py:57–65  ·  view source on GitHub ↗
( box1, box2 )

Source from the content-addressed store, hash-verified

55
56 @staticmethod
57 def compareBBox( box1, box2 ):
58 errorTolerance = imath.V3d(1e-5, 1e-5, 1e-5)
59 boxTmp = imath.Box3d( box1.min() - errorTolerance, box1.max() + errorTolerance )
60 if not IECore.BoxAlgo.contains( boxTmp, box2 ):
61 return False
62 boxTmp = imath.Box3d( box2.min() - errorTolerance, box2.max() + errorTolerance )
63 if not IECore.BoxAlgo.contains( boxTmp, box1 ):
64 return False
65 return True
66
67 def testSupportedExtension( self ) :
68 self.assertTrue( "lscc" in IECoreScene.SceneInterface.supportedExtensions() )

Callers 3

testWritingMethod · 0.45
testTimeRemappingMethod · 0.45

Calls 3

minMethod · 0.80
maxMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected