Exemple #1
0
def solid_torus():
    s1 = cm.torus(10.0, 1.0)
    save_iso(s1, 'solid_torus.png')
 def test_torus(self):
     s1 = cm.torus(10.0, 1.0)
     # empirical
     self.assert_(close(197.392, s1.volume(), 0.001))
Exemple #3
0
 def test_torus(self):
     s1 = cm.torus(10.0, 1.0)
     # empirical
     self.assert_(close(197.392, s1.volume(), 0.001))
def solid_torus():
    s1 = cm.torus(10.0, 1.0)
    save_iso(s1, 'solid_torus.png')