Planetary: Python2 fix. // doesn't allow floats in Python 2

This commit is contained in:
Florian Festi 2017-02-23 17:33:33 +01:00
parent d4edafe2d9
commit 490d089a83
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class Planetary(Boxes):
dimension=self.modulus)
t = self.thickness
planets = int(math.pi // math.asin((self.planetteeth + 2) / (self.planetteeth + self.sunteeth)))
planets = int(math.pi / (math.asin(float(self.planetteeth + 2) / (self.planetteeth + self.sunteeth))))
if self.maxplanets:
planets = min(self.maxplanets, planets)
@ -109,7 +109,7 @@ class Planetary(Boxes):
def main():
b = Box()
b = Planetary()
b.parseArgs()
b.render()