def solid_wedge(): s1 = cm.wedge(1.0, 2.0, 3.0, 0.5) save_iso(s1, 'solid_wedge.png')
def test_wedge(self): s1 = cm.wedge(1.0, 2.0, 3.0, 0.5) s2 = cm.wedge(1.0, 2.0, 3.0, 0.9, 1.1, 3.1, 3.2) self.assert_(close(4.5, s1.volume()) and close(7.98, s2.volume()))