def test_righttetra_translated(self):
     assert_allclose(
         polyhedron_volume(
             [np.array([4, 5, 6]) + v for v in self.righttetra]),
         0.166666666667)
 def test_twounitcube_translated(self):
     assert_allclose(
         polyhedron_volume(
             [np.array([4, 5, 6]) + v for v in self.twounitcube]), 8)
 def test_righttetra(self):
     assert_allclose(polyhedron_volume(self.righttetra), 0.166666666667)
 def test_twounitcube(self):
     assert_allclose(polyhedron_volume(self.twounitcube), 8)
Esempio n. 5
0
 def test_righttetra_translated(self):
     assert_allclose(polyhedron_volume([np.array([4,5,6]) + v for v in
                                     self.righttetra]), 0.166666666667)
Esempio n. 6
0
 def test_righttetra(self):
     assert_allclose(polyhedron_volume(self.righttetra), 0.166666666667)
Esempio n. 7
0
 def test_twounitcube_translated(self):
     assert_allclose(polyhedron_volume([np.array([4,5,6]) + v for v in
                                         self.twounitcube]), 8)
Esempio n. 8
0
 def test_twounitcube(self):
     assert_allclose(polyhedron_volume(self.twounitcube), 8)