Test Box3f constructors
(self)
| 492 | |
| 493 | class ImathBox3f(unittest.TestCase): |
| 494 | def testConstructors(self): |
| 495 | """Test Box3f constructors""" |
| 496 | b = imath.Box3f() |
| 497 | self.assertTrue( b.isEmpty() ) |
| 498 | |
| 499 | b = imath.Box3f( imath.V3f(1.0, 1.0, 1.0) ) |
| 500 | self.assertEqual( b.min(), imath.V3f(1.0, 1.0, 1.0) ) |
| 501 | self.assertEqual( b.max(), imath.V3f(1.0, 1.0, 1.0) ) |
| 502 | |
| 503 | b = imath.Box3f( imath.V3f(-1.0, -1.0, -1.0), imath.V3f(1.0, 1.0, 1.0) ) |
| 504 | self.assertEqual( b.min(), imath.V3f(-1.0, -1.0, -1.0) ) |
| 505 | self.assertEqual( b.max(), imath.V3f( 1.0, 1.0, 1.0) ) |
| 506 | |
| 507 | def testEquality(self): |
| 508 | """Test Box3f comparison for equality""" |