Skip to content

Commit

Permalink
examples: restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Dec 26, 2024
1 parent 284e288 commit 5d3072a
Show file tree
Hide file tree
Showing 28 changed files with 311 additions and 11 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,39 @@ scipy, numpy, sympy (optional), jupyter (optional)
* Undercut
* Fillets

![involute-gear](examples/involute-double-helical-gear.png)
![involute-gear](examples/images/involute-double-helical-gear.png)


### Involute Rack
![involute-rack](examples/involute-rack.png)
![involute-rack](examples/images/involute-rack.png)

### Cylindric Cycloid
* Helical
* Double Helical
* Fillets

![cycloid-gear](examples/cycloid-gear.png)
![cycloid-gear](examples/images/cycloid-gear.png)

### Cycloid Rack

![cycloid-rack](examples/cycloid-rack.png)
![cycloid-rack](examples/images/cycloid-rack.png)

### Spherical Involute Bevel-Gear
* Spiral

![bevel-gear](examples/bevel-gear.png)
![bevel-gear](examples/images/bevel-gear.png)

### Crown-Gear
![crown-gear](examples/crown-gear.png)
![crown-gear](examples/images/crown-gear.png)

### Worm-Gear
![worm-gear](examples/worm-gear.png)
![worm-gear](examples/images/worm-gear.png)

### Timing-Gear
![timing-gear](examples/timing-gear.png)
![timing-gear](examples/images/timing-gear.png)

### Lantern-Gear
![lantern-gear](examples/lantern-gear.png)
![lantern-gear](examples/images/lantern-gear.png)

---------------------------

Expand Down
Binary file added examples/Drawings/gear_rack.20241223-230627.FCBak
Binary file not shown.
Binary file not shown.
Binary file removed examples/bevel_gear_animation.fcstd1
Binary file not shown.
Binary file removed examples/bevel_gear_example.fcstd1
Binary file not shown.
Binary file removed examples/bicycle_chainring.FCStd1
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed examples/gear_from_picture.fcstd1
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
298 changes: 298 additions & 0 deletions examples/worm_cutting_tool/test.ipynb

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions examples/worm_cutting_tool/worm_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,16 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 1,
"id": "05428eb2-d03e-41e8-9ffd-5263b1db6344",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"PATH_TO_FREECAD_LIBDIR not specified, using default FreeCAD version in /home/lo/projects/freecad/freecad.gears/.pixi/envs/default/lib\n",
"Assembly4 workbench (v0.12.5) loaded\n",
"t_start_1: -3.111447653720825\n",
"t_start_0: 3.8893095671510314\n",
"t0: 3.918003320200202, min: 0.36578136487102625\n",
Expand Down Expand Up @@ -304,7 +306,7 @@
" print(f\"t0_start: {t_start_0}, min: {min_root(y, t_start_0)}\")\n",
" print(f\"t1_start: {t_start_1}, min: {min_head(y, t_start_1)}\")\n",
" for t in np.linspace(t0, t1, 10):\n",
" x_t = sp.optimize.minimize(lambda x: distance_pw(x, y, t), xw).x[0]\n",
" x_t = sp.optimize.root(lambda x: d_distance_pw_dx(x, y, t), xw).x[0]\n",
" z_t = z(x_t, y, t)\n",
" point = App.Vector(x_t, y, z_t)\n",
" part.show(part.Point(point).toShape())\n",
Expand Down

0 comments on commit 5d3072a

Please sign in to comment.