mkeeter / kokopelli

Script-based CAD/CAM in Python (deprecated)
https://mattkeeter.com/projects/kokopelli
Other
299 stars 49 forks source link

gear.ko issue #11

Closed TheBeachLab closed 10 years ago

TheBeachLab commented 10 years ago

Hi Matt, we are trying to figure out an issue with gear.ko example. If you try to raise the number of teeth, say to 150, then the teeth appear unevenly divided, grouped in 2 to 3 teeth with some space between them.

Do you have any idea of why is this happening?

Thank you

Francisco

mkeeter commented 10 years ago

Yes: it was using integer division (rather than floating-point). This should be fixed in 8f1129bb177d266f1d62e10a159f980130d0c815

Satyam commented 10 years ago

Thanks, it works!

A couple of examples:
https://gist.github.com/Satyam/a0baa6dec7dffdb17327 https://gist.github.com/Satyam/a12f7ba1f62c7a04ad49

mkeeter commented 10 years ago

Very cool, thanks for those examples.