mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-19 19:09:36 +00:00
fix lost change
This commit is contained in:
parent
a9e36c0e0b
commit
3d73a26dd7
1 changed files with 12 additions and 29 deletions
41
gears.scad
41
gears.scad
|
@ -246,11 +246,15 @@ module spur_gear(
|
||||||
c = outer_radius(pitch, teeth, clearance, internal);
|
c = outer_radius(pitch, teeth, clearance, internal);
|
||||||
r = _root_radius(pitch, teeth, clearance, internal);
|
r = _root_radius(pitch, teeth, clearance, internal);
|
||||||
twist = atan2(thickness*tan(helical),p);
|
twist = atan2(thickness*tan(helical),p);
|
||||||
<<<<<<< HEAD
|
|
||||||
default_tag("remove", internal)
|
default_tag("remove", internal)
|
||||||
attachable(anchor,spin,orient, r=p, l=thickness) {
|
attachable(anchor,spin,orient, r=p, l=thickness) {
|
||||||
difference() {
|
zrot(twist/2)
|
||||||
linear_extrude(height=thickness, center=true, convexity=teeth/2, twist=twist) {
|
linear_extrude(
|
||||||
|
height=thickness, center=true,
|
||||||
|
twist=twist, slices=slices,
|
||||||
|
convexity=teeth/2
|
||||||
|
) {
|
||||||
|
difference() {
|
||||||
spur_gear2d(
|
spur_gear2d(
|
||||||
pitch = pitch,
|
pitch = pitch,
|
||||||
teeth = teeth,
|
teeth = teeth,
|
||||||
|
@ -258,34 +262,13 @@ module spur_gear(
|
||||||
hide = hide,
|
hide = hide,
|
||||||
clearance = clearance,
|
clearance = clearance,
|
||||||
backlash = backlash,
|
backlash = backlash,
|
||||||
internal = internal
|
interior = interior
|
||||||
);
|
);
|
||||||
|
if (shaft_diam > 0) {
|
||||||
|
circle(r=shaft_diam/2, $fn=max(12,segs(shaft_diam/2)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (shaft_diam > 0) {
|
}
|
||||||
cylinder(h=2*thickness+1, r=shaft_diam/2, center=true, $fn=max(12,segs(shaft_diam/2)));
|
|
||||||
=======
|
|
||||||
attachable(anchor,spin,orient, r=p, l=thickness) {
|
|
||||||
zrot(twist/2)
|
|
||||||
linear_extrude(
|
|
||||||
height=thickness, center=true,
|
|
||||||
twist=twist, slices=slices,
|
|
||||||
convexity=teeth/2
|
|
||||||
) {
|
|
||||||
difference() {
|
|
||||||
spur_gear2d(
|
|
||||||
pitch = pitch,
|
|
||||||
teeth = teeth,
|
|
||||||
pressure_angle = pressure_angle,
|
|
||||||
hide = hide,
|
|
||||||
clearance = clearance,
|
|
||||||
backlash = backlash,
|
|
||||||
interior = interior
|
|
||||||
);
|
|
||||||
if (shaft_diam > 0) {
|
|
||||||
circle(r=shaft_diam/2, $fn=max(12,segs(shaft_diam/2)));
|
|
||||||
>>>>>>> upstream/master
|
|
||||||
}
|
|
||||||
}
|
|
||||||
children();
|
children();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue