Commit Graph

35 Commits

Author SHA1 Message Date
Rotzbua 9d6f535e01 Fix typing errors 2023-01-01 18:10:42 +01:00
Rotzbua ad38bb1eaf Auto optimize imports
* Remove unused
* Rearrange imports (module > partial > project)
2022-12-31 20:33:49 +01:00
Rotzbua 2e98f0fee0 Remove Python 2.7 coding hint 2022-12-29 12:02:33 +01:00
Florian Festi 6238903237 Gears: Use proper metric module
with diameter / #teeth instead of circumference / #teeth.

Thanks to nialabert (https://github.com/nialabert) for pointing this
out!

Resolves: #260
2021-06-26 10:58:25 +02:00
Florian Festi 9706816fe4 gears: prevent division by zero 2020-02-01 13:59:30 +01:00
Florian Festi 9b1ce265bf Make docstrings ready for autodoc 2019-02-13 09:01:20 +01:00
Florian Festi d7aadc9b72 Add callback param to gears.gearCarrier() 2017-05-04 21:41:18 +02:00
Florian Festi 93480e082d gears: Add teeth_only param to allow using gears as lines and not only as parts 2017-03-29 07:42:57 +02:00
Florian Festi 427a6fc54b Change default of mount_hole to 0 2017-03-29 07:42:15 +02:00
Florian Festi a0d992f43a Stop printing random stuff on stdout 2017-02-26 17:02:16 +01:00
Florian Festi 24a8588485 gears.py: allow zero spokes 2016-10-12 22:52:35 +02:00
Florian Festi fc36515fbd Properly center rack and make it a single line for negative base heights
Preparation for RackEdge
2016-10-12 22:52:35 +02:00
Florian Festi accb6eb45d gears.py: Support non closed line segments in drawPoints() 2016-10-12 22:52:35 +02:00
Florian Festi 0764a3660f gears.p: More fixes for racks 2016-10-01 23:30:32 +02:00
Florian Festi bc1d9ce19e gears.py: fix rack with draw_guides=False 2016-10-01 22:35:32 +02:00
Florian Festi 09ce2bd78b Fix size virtual size of gear carrier 2016-09-26 21:59:52 +02:00
schinken 93af56ff9c Code Reformat #1 2016-08-17 15:07:41 +02:00
Florian Festi 4cf33dae50 Move spacing out of the Edge margin() and into Boxes.move()
Also move ctx.save() and restoreinto Boxes.move().
Adjust (hopefully) all places using it.
2016-07-27 22:19:32 +02:00
Florian Festi 7aac41339c Add gearCarrier() 2016-07-25 18:59:50 +02:00
Florian Festi e3d552fe91 Allow passing a list of angles to generate_spokes() 2016-07-25 18:56:00 +02:00
Florian Festi 1472d250bc Draw spoke holes in correct direction (ccw) 2016-07-25 18:56:00 +02:00
Florian Festi c23b42a369 Fix size calculation for ring gears 2016-07-25 18:56:00 +02:00
Florian Festi 113783ce32 Add method fro getting sizes of the gears 2016-07-16 15:26:46 +02:00
Florian Festi 3abf95d665 Add callback and move param to regular gears 2016-07-13 17:41:44 +02:00
Florian Festi 4dd61691d2 Remove no longer needed code 2016-07-13 17:38:50 +02:00
Florian Festi 2a849e7af6 Enable support for rack gears 2016-07-13 17:37:50 +02:00
Florian Festi 0b963f30a1 Fix units to mm 2016-07-13 17:31:36 +02:00
Florian Festi c0a9d42abd Cleanups and outer circle for inner gears 2016-07-13 17:31:35 +02:00
Florian Festi c6b4fcc588 Centercross and pitchcircle 2016-07-13 17:31:35 +02:00
Florian Festi b86146fe1c Make generate_spokes a method and port it to boxes 2016-07-13 17:31:32 +02:00
Florian Festi ff8117b8ba Add burn correction to the gears 2016-07-13 17:30:23 +02:00
Florian Festi 3af1a11fbc Draw lines instead of creating svg for the teeth 2016-07-12 16:55:12 +02:00
Florian Festi 56bd463b94 Gears: use argparse for argument handling instead of the Inkscape classes 2016-07-12 16:55:12 +02:00
Florian Festi ab05372bcc Fix indentiation 2016-07-12 16:55:12 +02:00
Florian Festi 1fcb6c67b1 Add gear generator plugin for inkscape as a base for own generator
This file is borrowed from https://github.com/jnweiger/inkscape-gears-dev
2016-07-12 16:55:12 +02:00