119.4s
· 1896/5272t · $0.0551
diff vs bare: +33/-12
$fn = 96;
leaf_y = 30;
leaf_w = 25;
plate_t = 2;
pin_d = 4;
pin_len = 32;
knuckle_od = 8;
knuckle_id = 4.6;
knuckle_r = knuckle_od / 2;
seg_len = 6;
through_d = 3.2;
cs_d = 6;
cs_depth = 1;
eps = 0.02;
- overlap = 0.2;
+ barrel_clearance = 0.08;
+ connector_overlap = 0.22;
+ left_inner_x = -knuckle_r - barrel_clearance;
+ left_outer_x = left_inner_x - leaf_w;
+ right_inner_x = knuckle_r + barrel_clearance;
+ right_outer_x = right_inner_x + leaf_w;
+
screw_edge_margin = 7;
- screw_x = knuckle_r + leaf_w - screw_edge_margin - overlap;
+ left_screw_x = left_outer_x + screw_edge_margin;
+ right_screw_x = right_outer_x - screw_edge_margin;
module y_cylinder(h, d, center=true) {
rotate([-90, 0, 0])
cylinder(h=h, d=d, center=center);
}
module screw_hole(x, y) {
translate([x, y, 0])
cylinder(h=plate_t + 2 * eps, d=through_d, center=true);
translate([x, y, plate_t / 2 - cs_depth])
cylinder(h=cs_depth + eps, d1=through_d, d2=cs_d, center=false);
}
module knuckle(yc) {
translate([0, yc, 0])
difference() {
y_cylinder(seg_len, knuckle_od, center=true);
y_cylinder(seg_len + 2 * eps, knuckle_id, center=true);
}
}
+ module left_connector(yc) {
+ x1 = left_inner_x - connector_overlap;
+ x2 = -knuckle_r + connector_overlap;
+ translate([(x1 + x2) / 2, yc, 0])
+ cube([x2 - x1, seg_len, plate_t], center=true);
+ }
+
+ module right_connector(yc) {
+ x1 = knuckle_r - connector_overlap;
+ x2 = right_inner_x + connector_overlap;
+ translate([(x1 + x2) / 2, yc, 0])
+ cube([x2 - x1, seg_len, plate_t], center=true);
+ }
+
module left_plate() {
- xmin = -(knuckle_r + leaf_w - overlap);
- xmax = -(knuckle_r - overlap);
- translate([(xmin + xmax) / 2, 0, 0])
+ translate([(left_outer_x + left_inner_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module right_plate() {
- xmin = knuckle_r - overlap;
- xmax = knuckle_r + leaf_w - overlap;
- translate([(xmin + xmax) / 2, 0, 0])
+ translate([(right_inner_x + right_outer_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module left_leaf() {
difference() {
union() {
left_plate();
- for (yc = [-12, 0, 12])
+ for (yc = [-12, 0, 12]) {
knuckle(yc);
+ left_connector(yc);
+ }
}
for (yh = [-8, 0, 8])
- screw_hole(-screw_x, yh);
+ screw_hole(left_screw_x, yh);
}
}
module right_leaf() {
difference() {
union() {
right_plate();
- for (yc = [-6, 6])
+ for (yc = [-6, 6]) {
knuckle(yc);
+ right_connector(yc);
+ }
}
for (yh = [-8, 0, 8])
- screw_hole(screw_x, yh);
+ screw_hole(right_screw_x, yh);
}
}
module pin_axis() {
y_cylinder(pin_len, pin_d, center=true);
}
color([0.50, 0.50, 0.50])
left_leaf();
color([0.62, 0.62, 0.62])
right_leaf();
color([0.18, 0.18, 0.18])
pin_axis();
SCAD (116 lines)
$fn = 96;
leaf_y = 30;
leaf_w = 25;
plate_t = 2;
pin_d = 4;
pin_len = 32;
knuckle_od = 8;
knuckle_id = 4.6;
knuckle_r = knuckle_od / 2;
seg_len = 6;
through_d = 3.2;
cs_d = 6;
cs_depth = 1;
eps = 0.02;
barrel_clearance = 0.08;
connector_overlap = 0.22;
left_inner_x = -knuckle_r - barrel_clearance;
left_outer_x = left_inner_x - leaf_w;
right_inner_x = knuckle_r + barrel_clearance;
right_outer_x = right_inner_x + leaf_w;
screw_edge_margin = 7;
left_screw_x = left_outer_x + screw_edge_margin;
right_screw_x = right_outer_x - screw_edge_margin;
module y_cylinder(h, d, center=true) {
rotate([-90, 0, 0])
cylinder(h=h, d=d, center=center);
}
module screw_hole(x, y) {
translate([x, y, 0])
cylinder(h=plate_t + 2 * eps, d=through_d, center=true);
translate([x, y, plate_t / 2 - cs_depth])
cylinder(h=cs_depth + eps, d1=through_d, d2=cs_d, center=false);
}
module knuckle(yc) {
translate([0, yc, 0])
difference() {
y_cylinder(seg_len, knuckle_od, center=true);
y_cylinder(seg_len + 2 * eps, knuckle_id, center=true);
}
}
module left_connector(yc) {
x1 = left_inner_x - connector_overlap;
x2 = -knuckle_r + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module right_connector(yc) {
x1 = knuckle_r - connector_overlap;
x2 = right_inner_x + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module left_plate() {
translate([(left_outer_x + left_inner_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module right_plate() {
translate([(right_inner_x + right_outer_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module left_leaf() {
difference() {
union() {
left_plate();
for (yc = [-12, 0, 12]) {
knuckle(yc);
left_connector(yc);
}
}
for (yh = [-8, 0, 8])
screw_hole(left_screw_x, yh);
}
}
module right_leaf() {
difference() {
union() {
right_plate();
for (yc = [-6, 6]) {
knuckle(yc);
right_connector(yc);
}
}
for (yh = [-8, 0, 8])
screw_hole(right_screw_x, yh);
}
}
module pin_axis() {
y_cylinder(pin_len, pin_d, center=true);
}
color([0.50, 0.50, 0.50])
left_leaf();
color([0.62, 0.62, 0.62])
right_leaf();
color([0.18, 0.18, 0.18])
pin_axis();
112.1s
· 2082/5005t · $0.0527
diff vs i1: +16/-8
$fn = 96;
leaf_y = 30;
leaf_w = 25;
plate_t = 2;
pin_d = 4;
pin_len = 32;
knuckle_od = 8;
knuckle_id = 4.6;
knuckle_r = knuckle_od / 2;
seg_len = 6;
through_d = 3.2;
cs_d = 6;
cs_depth = 1;
eps = 0.02;
- barrel_clearance = 0.08;
- connector_overlap = 0.22;
+ connector_overlap = 0.35;
- left_inner_x = -knuckle_r - barrel_clearance;
+ // Flat leaf plates are placed outside the knuckle OD.
+ // Pin axis is the Y axis, centered at X=0, Z=0.
+ left_inner_x = -knuckle_r;
left_outer_x = left_inner_x - leaf_w;
- right_inner_x = knuckle_r + barrel_clearance;
+ right_inner_x = knuckle_r;
right_outer_x = right_inner_x + leaf_w;
screw_edge_margin = 7;
left_screw_x = left_outer_x + screw_edge_margin;
right_screw_x = right_outer_x - screw_edge_margin;
module y_cylinder(h, d, center=true) {
rotate([-90, 0, 0])
cylinder(h=h, d=d, center=center);
}
- module screw_hole(x, y) {
+ module countersunk_hole(x, y) {
translate([x, y, 0])
cylinder(h=plate_t + 2 * eps, d=through_d, center=true);
translate([x, y, plate_t / 2 - cs_depth])
- cylinder(h=cs_depth + eps, d1=through_d, d2=cs_d, center=false);
+ cylinder(h=cs_depth, d1=through_d, d2=cs_d, center=false);
+
+ translate([x, y, plate_t / 2 - eps])
+ cylinder(h=2 * eps, d=cs_d, center=false);
}
module knuckle(yc) {
translate([0, yc, 0])
difference() {
y_cylinder(seg_len, knuckle_od, center=true);
y_cylinder(seg_len + 2 * eps, knuckle_id, center=true);
}
}
module left_connector(yc) {
x1 = left_inner_x - connector_overlap;
x2 = -knuckle_r + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module right_connector(yc) {
x1 = knuckle_r - connector_overlap;
x2 = right_inner_x + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module left_plate() {
translate([(left_outer_x + left_inner_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module right_plate() {
translate([(right_inner_x + right_outer_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module left_leaf() {
difference() {
union() {
left_plate();
+
for (yc = [-12, 0, 12]) {
knuckle(yc);
left_connector(yc);
}
}
+
for (yh = [-8, 0, 8])
- screw_hole(left_screw_x, yh);
+ countersunk_hole(left_screw_x, yh);
}
}
module right_leaf() {
difference() {
union() {
right_plate();
+
for (yc = [-6, 6]) {
knuckle(yc);
right_connector(yc);
}
}
+
for (yh = [-8, 0, 8])
- screw_hole(right_screw_x, yh);
+ countersunk_hole(right_screw_x, yh);
}
}
module pin_axis() {
y_cylinder(pin_len, pin_d, center=true);
}
color([0.50, 0.50, 0.50])
left_leaf();
color([0.62, 0.62, 0.62])
right_leaf();
color([0.18, 0.18, 0.18])
pin_axis();
SCAD (124 lines)
$fn = 96;
leaf_y = 30;
leaf_w = 25;
plate_t = 2;
pin_d = 4;
pin_len = 32;
knuckle_od = 8;
knuckle_id = 4.6;
knuckle_r = knuckle_od / 2;
seg_len = 6;
through_d = 3.2;
cs_d = 6;
cs_depth = 1;
eps = 0.02;
connector_overlap = 0.35;
// Flat leaf plates are placed outside the knuckle OD.
// Pin axis is the Y axis, centered at X=0, Z=0.
left_inner_x = -knuckle_r;
left_outer_x = left_inner_x - leaf_w;
right_inner_x = knuckle_r;
right_outer_x = right_inner_x + leaf_w;
screw_edge_margin = 7;
left_screw_x = left_outer_x + screw_edge_margin;
right_screw_x = right_outer_x - screw_edge_margin;
module y_cylinder(h, d, center=true) {
rotate([-90, 0, 0])
cylinder(h=h, d=d, center=center);
}
module countersunk_hole(x, y) {
translate([x, y, 0])
cylinder(h=plate_t + 2 * eps, d=through_d, center=true);
translate([x, y, plate_t / 2 - cs_depth])
cylinder(h=cs_depth, d1=through_d, d2=cs_d, center=false);
translate([x, y, plate_t / 2 - eps])
cylinder(h=2 * eps, d=cs_d, center=false);
}
module knuckle(yc) {
translate([0, yc, 0])
difference() {
y_cylinder(seg_len, knuckle_od, center=true);
y_cylinder(seg_len + 2 * eps, knuckle_id, center=true);
}
}
module left_connector(yc) {
x1 = left_inner_x - connector_overlap;
x2 = -knuckle_r + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module right_connector(yc) {
x1 = knuckle_r - connector_overlap;
x2 = right_inner_x + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module left_plate() {
translate([(left_outer_x + left_inner_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module right_plate() {
translate([(right_inner_x + right_outer_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module left_leaf() {
difference() {
union() {
left_plate();
for (yc = [-12, 0, 12]) {
knuckle(yc);
left_connector(yc);
}
}
for (yh = [-8, 0, 8])
countersunk_hole(left_screw_x, yh);
}
}
module right_leaf() {
difference() {
union() {
right_plate();
for (yc = [-6, 6]) {
knuckle(yc);
right_connector(yc);
}
}
for (yh = [-8, 0, 8])
countersunk_hole(right_screw_x, yh);
}
}
module pin_axis() {
y_cylinder(pin_len, pin_d, center=true);
}
color([0.50, 0.50, 0.50])
left_leaf();
color([0.62, 0.62, 0.62])
right_leaf();
color([0.18, 0.18, 0.18])
pin_axis();
85.2s
· 2124/3952t · $0.0422
diff vs i2: +2/-5
$fn = 96;
leaf_y = 30;
leaf_w = 25;
plate_t = 2;
pin_d = 4;
pin_len = 32;
knuckle_od = 8;
knuckle_id = 4.6;
knuckle_r = knuckle_od / 2;
seg_len = 6;
through_d = 3.2;
cs_d = 6;
cs_depth = 1;
eps = 0.02;
connector_overlap = 0.35;
- // Flat leaf plates are placed outside the knuckle OD.
// Pin axis is the Y axis, centered at X=0, Z=0.
+ // Leaves are opened 180 degrees and extend to x<0 / x>0.
left_inner_x = -knuckle_r;
left_outer_x = left_inner_x - leaf_w;
right_inner_x = knuckle_r;
right_outer_x = right_inner_x + leaf_w;
screw_edge_margin = 7;
left_screw_x = left_outer_x + screw_edge_margin;
right_screw_x = right_outer_x - screw_edge_margin;
module y_cylinder(h, d, center=true) {
rotate([-90, 0, 0])
cylinder(h=h, d=d, center=center);
}
module countersunk_hole(x, y) {
translate([x, y, 0])
cylinder(h=plate_t + 2 * eps, d=through_d, center=true);
translate([x, y, plate_t / 2 - cs_depth])
- cylinder(h=cs_depth, d1=through_d, d2=cs_d, center=false);
-
- translate([x, y, plate_t / 2 - eps])
- cylinder(h=2 * eps, d=cs_d, center=false);
+ cylinder(h=cs_depth + eps, d1=through_d, d2=cs_d, center=false);
}
module knuckle(yc) {
translate([0, yc, 0])
difference() {
y_cylinder(seg_len, knuckle_od, center=true);
y_cylinder(seg_len + 2 * eps, knuckle_id, center=true);
}
}
module left_connector(yc) {
x1 = left_inner_x - connector_overlap;
x2 = -knuckle_r + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module right_connector(yc) {
x1 = knuckle_r - connector_overlap;
x2 = right_inner_x + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module left_plate() {
translate([(left_outer_x + left_inner_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module right_plate() {
translate([(right_inner_x + right_outer_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module left_leaf() {
difference() {
union() {
left_plate();
for (yc = [-12, 0, 12]) {
knuckle(yc);
left_connector(yc);
}
}
for (yh = [-8, 0, 8])
countersunk_hole(left_screw_x, yh);
}
}
module right_leaf() {
difference() {
union() {
right_plate();
for (yc = [-6, 6]) {
knuckle(yc);
right_connector(yc);
}
}
for (yh = [-8, 0, 8])
countersunk_hole(right_screw_x, yh);
}
}
module pin_axis() {
y_cylinder(pin_len, pin_d, center=true);
}
color([0.50, 0.50, 0.50])
left_leaf();
color([0.62, 0.62, 0.62])
right_leaf();
color([0.18, 0.18, 0.18])
pin_axis();
SCAD (121 lines)
$fn = 96;
leaf_y = 30;
leaf_w = 25;
plate_t = 2;
pin_d = 4;
pin_len = 32;
knuckle_od = 8;
knuckle_id = 4.6;
knuckle_r = knuckle_od / 2;
seg_len = 6;
through_d = 3.2;
cs_d = 6;
cs_depth = 1;
eps = 0.02;
connector_overlap = 0.35;
// Pin axis is the Y axis, centered at X=0, Z=0.
// Leaves are opened 180 degrees and extend to x<0 / x>0.
left_inner_x = -knuckle_r;
left_outer_x = left_inner_x - leaf_w;
right_inner_x = knuckle_r;
right_outer_x = right_inner_x + leaf_w;
screw_edge_margin = 7;
left_screw_x = left_outer_x + screw_edge_margin;
right_screw_x = right_outer_x - screw_edge_margin;
module y_cylinder(h, d, center=true) {
rotate([-90, 0, 0])
cylinder(h=h, d=d, center=center);
}
module countersunk_hole(x, y) {
translate([x, y, 0])
cylinder(h=plate_t + 2 * eps, d=through_d, center=true);
translate([x, y, plate_t / 2 - cs_depth])
cylinder(h=cs_depth + eps, d1=through_d, d2=cs_d, center=false);
}
module knuckle(yc) {
translate([0, yc, 0])
difference() {
y_cylinder(seg_len, knuckle_od, center=true);
y_cylinder(seg_len + 2 * eps, knuckle_id, center=true);
}
}
module left_connector(yc) {
x1 = left_inner_x - connector_overlap;
x2 = -knuckle_r + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module right_connector(yc) {
x1 = knuckle_r - connector_overlap;
x2 = right_inner_x + connector_overlap;
translate([(x1 + x2) / 2, yc, 0])
cube([x2 - x1, seg_len, plate_t], center=true);
}
module left_plate() {
translate([(left_outer_x + left_inner_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module right_plate() {
translate([(right_inner_x + right_outer_x) / 2, 0, 0])
cube([leaf_w, leaf_y, plate_t], center=true);
}
module left_leaf() {
difference() {
union() {
left_plate();
for (yc = [-12, 0, 12]) {
knuckle(yc);
left_connector(yc);
}
}
for (yh = [-8, 0, 8])
countersunk_hole(left_screw_x, yh);
}
}
module right_leaf() {
difference() {
union() {
right_plate();
for (yc = [-6, 6]) {
knuckle(yc);
right_connector(yc);
}
}
for (yh = [-8, 0, 8])
countersunk_hole(right_screw_x, yh);
}
}
module pin_axis() {
y_cylinder(pin_len, pin_d, center=true);
}
color([0.50, 0.50, 0.50])
left_leaf();
color([0.62, 0.62, 0.62])
right_leaf();
color([0.18, 0.18, 0.18])
pin_axis();