mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-02-01 01:09:44 +00:00
Corrected helical gear twist calculation.
This commit is contained in:
parent
34bb2e74fd
commit
cdbfe0217c
1 changed files with 2 additions and 2 deletions
|
@ -198,7 +198,7 @@ function spur_gear(
|
||||||
p = pitch_radius(pitch, teeth),
|
p = pitch_radius(pitch, teeth),
|
||||||
c = outer_radius(pitch, teeth, clearance, interior),
|
c = outer_radius(pitch, teeth, clearance, interior),
|
||||||
r = _root_radius(pitch, teeth, clearance, interior),
|
r = _root_radius(pitch, teeth, clearance, interior),
|
||||||
twist = atan2(thickness*tan(helical),p),
|
twist = 360*thickness*tan(helical)/(2*PI*p),
|
||||||
rgn = [
|
rgn = [
|
||||||
spur_gear2d(
|
spur_gear2d(
|
||||||
pitch = pitch,
|
pitch = pitch,
|
||||||
|
@ -237,7 +237,7 @@ module spur_gear(
|
||||||
p = pitch_radius(pitch, teeth);
|
p = pitch_radius(pitch, teeth);
|
||||||
c = outer_radius(pitch, teeth, clearance, interior);
|
c = outer_radius(pitch, teeth, clearance, interior);
|
||||||
r = _root_radius(pitch, teeth, clearance, interior);
|
r = _root_radius(pitch, teeth, clearance, interior);
|
||||||
twist = atan2(thickness*tan(helical),p);
|
twist = 360*thickness*tan(helical)/(2*PI*p);
|
||||||
attachable(anchor,spin,orient, r=p, l=thickness) {
|
attachable(anchor,spin,orient, r=p, l=thickness) {
|
||||||
zrot(twist/2)
|
zrot(twist/2)
|
||||||
linear_extrude(
|
linear_extrude(
|
||||||
|
|
Loading…
Reference in a new issue