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)
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)