Commit Graph

279 Commits

Author SHA1 Message Date
Syres916
48f3f4a7d3 [Gears] Allow for both Python 3.11 and above as...
well as 3.10 and below as they are all currently supported by FreeCAD core.
2023-12-26 13:14:03 +01:00
Syres916
6d04fb1031 [Gears] Check if Python 3.11 or above is in use
and if so is the version of FreeCAD sufficient to properly handle pickle of JSON data
2023-12-26 13:14:03 +01:00
looooo
0d183f691c ruff format 2023-12-25 23:13:36 +01:00
looooo
17f04bfde4 ruff format pygears 2023-12-25 23:11:41 +01:00
looooo
22baac93bd __getstate__, __setstate__ -> loads, dumps 2023-12-25 14:15:31 +01:00
lorenz
681ad0a222 Create pylint.yml 2023-12-24 19:03:53 +01:00
Syres916
7af3806181 [Gears] Fix AddonManager not updating to...
...most recent master commit
2023-11-27 17:16:57 +01:00
Syres916
fe626176a3 [Gears] Remove unused import 2023-11-27 13:07:37 +01:00
Syres916
c6f09bd864 [Gears] Remove Deepcopy dependency 2023-11-27 13:07:37 +01:00
Syres916
e6e6e9b7d4 [Gears] Remove dependency on Deepcopy 2023-11-27 13:07:37 +01:00
Scott Mudge
0eb9913420 fixed issue loading old document without traverse_module existing in gear XML 2023-10-15 11:11:12 +02:00
BearTM
2def33833a Update features.py to support HTD Timing Gear Profiles
Added 3M, 5M, 8M HTD Timing Gear Profiles
Corrected GT8 Profile naming from "htd8" to "gt8"
2023-09-24 13:14:48 +02:00
luzpaz
2f21661462 Remove LGTM badges from README.md
LGTM was folded into Gitub (https://github.blog/2022-08-15-the-next-step-for-lgtm-com-github-code-scanning/)
2023-09-11 17:14:04 +02:00
looooo
80fbd3d49e internal gear: don't use expression for dw 2023-01-22 20:58:36 +01:00
looooo
b38bfda072 remove expression for involute gear dw, it doesn't update correctly 2023-01-22 19:42:41 +01:00
looooo
23a649cd23 add gear-shaft example 2023-01-17 20:03:13 +01:00
looooo
bc41c864a1 traverse pitch computation 2022-12-28 13:32:51 +01:00
looooo
84026d912b fix involute-gear computation 2022-12-15 19:15:46 +01:00
lorenz
ba87611235 fix computed property dw 2022-12-15 18:25:44 +01:00
looooo
29e45aa613 fix rack traverse_pitch 2022-10-23 17:34:23 +02:00
Benjamin Vedder
60db69f302 Added HTD8 timing gear 2022-09-08 13:36:58 +02:00
looooo
4e6223bffa Merge branch 'develop' of https://github.com/looooo/freecad.gears into develop 2022-06-10 14:18:54 +02:00
looooo
07bfe0446d do not use pythonocc-core 2022-06-10 14:18:37 +02:00
lorenz
05d2afef44 InvoluteGearRack: properties_from_tool default = False 2022-05-03 14:48:55 +02:00
looooo
2ede7f0bdc Merge branch 'develop' of https://github.com/looooo/freecad.gears into develop 2022-02-22 11:07:24 +01:00
looooo
6042cb8b4d add root-fillet for cycloid rack 2022-02-22 11:07:02 +01:00
luz paz
2e25ba6b97 Add extra metadata to package.xml 2022-02-21 10:34:55 +01:00
looooo
6a9baf4fed add package.xml 2022-02-20 12:14:04 +01:00
looooo
1cf83e7344 gear-rack add fillets 2022-02-10 14:15:19 +01:00
looooo
39e5ce1378 add head-fillet for cycloid gear racks 2022-02-02 23:33:47 +01:00
Jonas Bähr
9f1e87bedb Calculate pitch diameter and angular backlash via expressions
Using expressions instead of filling these values in the `execute` method
has the advantage that the values can be used in other expressions on the
same object. First, the expressions are evaluated, then the feature is
"executed". Previously, the changed values are only available after the
execution and thus had no effect if e.g. used in calculating the
placement of the very same gear (until another recompute happens).
2022-01-12 11:24:06 +01:00
Jonas Bähr
7c4723c9b7 Interpret the backlash as "Circumferential Backlash"
This fixes some unit mismatch, as the backlash is specified as length,
but the involute tooth generation code used to interpret it as angular
value in radians (no idea why it was additionaly diveded by four; we need
the half on each side of the tooth).
Now half of the value specified as "backlash" can be directly measured at
the pitch circle when comparing each tooth flank of a gear with and
without backlash.
2022-01-08 11:03:26 +01:00
Jonas Bähr
d0e7720988 Fix head and clearance for the cycloid gear
Head and cleance values have been applied only once, but as we're dealing
with a diameter, not a radius, they are needed twice. (The involute gear
does not suffer from this bug)
2022-01-04 20:08:52 +01:00
Jonas Bähr
da42164552 Use expression as inner_diameter for cycloid gear
The cycloid gear is created with a default number of teeth of 15 and an
`inner_diameter` of 7.5. That is half the number of teeth and results in
an hypocycloid going orthogonal from the pitch circle right to the center.
This change now replaces the hard coded value "7.5" with the expression
"teeth / 2" so that this straight hypocycloid is kept, even if the number
of teeth is adapted. This allows easy reduction of the number of teeth
(down to two, in fact) without the recomputation to fail.
2022-01-04 20:05:28 +01:00
looooo
73f6b7f1f7 Merge branch 'develop' of https://github.com/looooo/freecad.gears into develop 2021-12-16 13:20:43 +01:00
looooo
590994984f connector: add support for internal involute gears 2021-12-16 13:20:11 +01:00
luz paz
b4783df755 Fix source comment typos 2021-12-07 21:19:20 +01:00
looooo
2ecc0e8744 cycloid gear rack: some fixes 2021-12-07 11:58:10 +01:00
looooo
d77f5c1ab4 connector: add support for racks 2021-12-06 21:03:14 +01:00
looooo
4aa2559629 connector: add support for cycloid gears 2021-12-04 14:07:08 +01:00
looooo
5846ffbfdc connector: add support for shifted gears 2021-12-04 13:25:20 +01:00
looooo
7edc50c32d some clean up 2021-12-02 15:14:06 +01:00
looooo
05abf3054d first prototyp for gear connector 2021-12-02 15:09:21 +01:00
looooo
10d4bf0bbf add missing files for gear connector 2021-12-02 12:45:49 +01:00
looooo
ea904a2a7d add prototype for gear connector 2021-12-02 12:44:34 +01:00
looooo
0eca70d832 change size of image 2021-12-01 13:28:57 +01:00
looooo
469e00cd98 add cycloid rack image 2021-12-01 13:26:12 +01:00
looooo
3668892abe cycloidgearrack additions 2021-12-01 11:10:27 +01:00
looooo
8b8f8e0779 cycloide gear rack 2021-11-30 15:27:52 +01:00
Scott Mudge
ef73b66040 add icon in same style as existing cycloid gear 2021-11-27 13:39:36 +01:00