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