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

Method compareBBox

test/IECoreScene/SceneCacheTest.py:174–182  ·  view source on GitHub ↗
( box1, box2 )

Source from the content-addressed store, hash-verified

172
173 @staticmethod
174 def compareBBox( box1, box2 ):
175 errorTolerance = imath.V3d(1e-5, 1e-5, 1e-5)
176 boxTmp = imath.Box3d( box1.min() - errorTolerance, box1.max() + errorTolerance )
177 if not IECore.BoxAlgo.contains( boxTmp, box2 ):
178 return False
179 boxTmp = imath.Box3d( box2.min() - errorTolerance, box2.max() + errorTolerance )
180 if not IECore.BoxAlgo.contains( boxTmp, box1 ):
181 return False
182 return True
183
184 def testRandomStaticHierarchy( self ) :
185

Callers 4

readWalkMethod · 0.45
testStoredSceneMethod · 0.45

Calls 3

minMethod · 0.80
maxMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected