some examples
This commit is contained in:
19
README.md
19
README.md
@@ -3,6 +3,25 @@ A gear module for FreeCAD
|
||||
|
||||

|
||||
|
||||
## supported gear-types:
|
||||
- cylindric involute
|
||||
- shifting
|
||||
- helical
|
||||
- double helical
|
||||
- undercut
|
||||
|
||||
- involute rack
|
||||
|
||||
- cylindric cycloid
|
||||
- helical
|
||||
- double helical
|
||||
|
||||
- spherical involute bevel-gear
|
||||
- spiral
|
||||
|
||||
- crown-gear
|
||||
|
||||
|
||||
Use only with FreeCAD version > 0.16
|
||||
|
||||
* install on Linux:
|
||||
|
||||
18
examples/animation.py
Normal file
18
examples/animation.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# script for bevel-gear animation
|
||||
|
||||
from PySide import QtGui, QtCore
|
||||
|
||||
doc = App.ActiveDocument
|
||||
g2 = doc.Common
|
||||
g1 = doc.Common001
|
||||
|
||||
timer = QtCore.QTimer()
|
||||
|
||||
def update(*args):
|
||||
print("time")
|
||||
delta_phi = 0.005
|
||||
g1.Placement.Rotation.Angle += delta_phi * 2
|
||||
g2.Placement.Rotation.Angle -= delta_phi
|
||||
|
||||
timer.timeout.connect(update)
|
||||
timer.start()
|
||||
BIN
examples/bevel_gear_animation.fcstd
Normal file
BIN
examples/bevel_gear_animation.fcstd
Normal file
Binary file not shown.
Reference in New Issue
Block a user