Adjust sprocket bevel

This commit is contained in:
Matt McWilliams 2024-01-13 19:54:26 -05:00
parent b4ea887d58
commit d94c0212e9
1 changed files with 9 additions and 8 deletions

View File

@ -1,43 +1,44 @@
include <./common/common.scad>; include <./common/common.scad>;
FN = 100;
$fn = FN;
SprocketBaseD = 19.05; //8 frames SprocketBaseD = 19.05; //8 frames
SprocketBaseH = 2.7; SprocketBaseH = 2.7;
SprocketH = 10; SprocketH = 10;
SprocketW = 0.79; SprocketW = 0.79;
SprocketL = 1.3; SprocketL = 1.3;
SprocketAngle = 7;
SprocketAngleZ = 1.5;
InnerD = 13.98; InnerD = 13.98;
InnerH = 10.6; InnerH = 10.6;
TopBaseD = 18.47; TopBaseD = 18.47;
TopBaseH = 2.96; TopBaseH = 2.96;
LipD = 18.84; LipD = 18.84;
LipH = 0.33; LipH = 0.33;
TopD = 21.66; TopD = 21.66;
TopH = 1.4; TopH = 1.4;
HollowD = 4.7; HollowD = 4.7;
HollowBaseD = 12.01; HollowBaseD = 12.01;
HollowBaseH = 6.09; HollowBaseH = 6.09;
$fn = 100;
module sprocket (pos = [0, 0, 0], rot = [0, 0, 0], bevel = false) { module sprocket (pos = [0, 0, 0], rot = [0, 0, 0], bevel = false) {
//cube([SprocketL, SprocketW, SprocketH], center = true); //cube([SprocketL, SprocketW, SprocketH], center = true);
$fn = 50;
translate (pos) rotate(rot) { translate (pos) rotate(rot) {
difference () { difference () {
translate([0, 0, 0]) scale([1, 1, 2.25]) rotate([90, 0, 90]) cylinder(r = SprocketW/2, h = SprocketL, center = true); translate([0, 0, 0]) scale([1, 1, 2.25]) rotate([90, 0, 90]) cylinder(r = SprocketW/2, h = SprocketL, center = true);
translate([0, 0, -1]) cube([2, 2, 2], center = true); translate([0, 0, -1]) cube([2, 2, 2], center = true);
if (bevel) { if (bevel) {
translate([1.5, 0, 0]) rotate([0, -5, 0]) cube([2, 2, 3], center = true); translate([SprocketAngleZ, 0, 0]) rotate([0, -SprocketAngle, 0]) cube([2, 2, 3], center = true);
translate([-1.5, 0, 0]) rotate([0, 5, 0]) cube([2, 2, 3], center = true); translate([-SprocketAngleZ, 0, 0]) rotate([0, SprocketAngle, 0]) cube([2, 2, 3], center = true);
} }
} }
} }