Пример #1
0
def derived_helical_solid():
    profile = cm.ngon(0.2, 3)
    s1 = cm.helical_solid(profile, 2.0, 1.0 / math.pi, 2)
    save_iso(s1, 'derived_helical_solid.png')
Пример #2
0
 def test_helical_solid(self):
     profile = cm.ngon(0.2, 3)
     s1 = cm.helical_solid(profile, 2.0, 1.0 / math.pi, 2)
     # empirical
     self.assert_(close(1.346, s1.volume(), 0.001))
Пример #3
0
 def test_helical_solid(self):
     profile = cm.ngon(0.2, 3)
     s1 = cm.helical_solid(profile, 2.0, 1.0 / math.pi, 2)
     # empirical
     self.assert_(close(1.346, s1.volume(), 0.001))
Пример #4
0
def derived_helical_solid():
    profile = cm.ngon(0.2, 3)
    s1 = cm.helical_solid(profile, 2.0, 1.0 / math.pi, 2)
    save_iso(s1, 'derived_helical_solid.png')