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