Add ACME animation peg bar model.

This commit is contained in:
mmcwilliams 2019-09-05 20:38:51 -04:00
parent 3e53663a81
commit 8c37771593
3 changed files with 237 additions and 112 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -531,20 +531,6 @@ solid OpenSCAD_Model
vertex 3.13 -3.745 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -7.13 3.745 -1
vertex 3.13 3.745 1
vertex -7.13 3.745 1
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex 3.13 3.745 1
vertex -7.13 3.745 -1
vertex 3.13 3.745 -1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 3.13 -3.745 -1
@ -559,6 +545,20 @@ solid OpenSCAD_Model
vertex -7.13 -3.745 -1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -7.13 3.745 -1
vertex 3.13 3.745 1
vertex -7.13 3.745 1
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex 3.13 3.745 1
vertex -7.13 3.745 -1
vertex 3.13 3.745 -1
endloop
endfacet
facet normal 1 -0 0
outer loop
vertex 3.13 3.825 1
@ -587,20 +587,6 @@ solid OpenSCAD_Model
vertex 6 3.825 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 3.13 11.315 -1
vertex 6 11.315 1
vertex 3.13 11.315 1
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex 6 11.315 1
vertex 3.13 11.315 -1
vertex 6 11.315 -1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 6 3.825 -1
@ -615,6 +601,20 @@ solid OpenSCAD_Model
vertex 3.13 3.825 -1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 3.13 11.315 -1
vertex 6 11.315 1
vertex 3.13 11.315 1
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex 6 11.315 1
vertex 3.13 11.315 -1
vertex 6 11.315 -1
endloop
endfacet
facet normal -1 0 0
outer loop
vertex -8.8406 -19.485 2.28036
@ -657,20 +657,6 @@ solid OpenSCAD_Model
vertex -7.1594 -19.485 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 -19.485 1
vertex -7.1594 -19.485 2.28036
vertex -8.8406 -19.485 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 -19.485 2.28036
vertex -8.8406 -19.485 1
vertex -7.1594 -19.485 1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -7.1594 -18.515 1
@ -685,6 +671,20 @@ solid OpenSCAD_Model
vertex -8.8406 -18.515 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 -19.485 1
vertex -7.1594 -19.485 2.28036
vertex -8.8406 -19.485 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 -19.485 2.28036
vertex -8.8406 -19.485 1
vertex -7.1594 -19.485 1
endloop
endfacet
facet normal -0 0.707106 0.707107
outer loop
vertex -8.8406 -18.515 2.28036
@ -755,20 +755,6 @@ solid OpenSCAD_Model
vertex -7.1594 -11.915 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 -11.915 1
vertex -7.1594 -11.915 2.28036
vertex -8.8406 -11.915 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 -11.915 2.28036
vertex -8.8406 -11.915 1
vertex -7.1594 -11.915 1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -7.1594 -10.945 1
@ -783,6 +769,20 @@ solid OpenSCAD_Model
vertex -8.8406 -10.945 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 -11.915 1
vertex -7.1594 -11.915 2.28036
vertex -8.8406 -11.915 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 -11.915 2.28036
vertex -8.8406 -11.915 1
vertex -7.1594 -11.915 1
endloop
endfacet
facet normal 0 0.707107 0.707107
outer loop
vertex -7.1594 -10.945 2.28036
@ -853,20 +853,6 @@ solid OpenSCAD_Model
vertex -7.1594 -4.345 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 -4.345 1
vertex -7.1594 -4.345 2.28036
vertex -8.8406 -4.345 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 -4.345 2.28036
vertex -8.8406 -4.345 1
vertex -7.1594 -4.345 1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -7.1594 -3.375 1
@ -881,6 +867,20 @@ solid OpenSCAD_Model
vertex -8.8406 -3.375 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 -4.345 1
vertex -7.1594 -4.345 2.28036
vertex -8.8406 -4.345 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 -4.345 2.28036
vertex -8.8406 -4.345 1
vertex -7.1594 -4.345 1
endloop
endfacet
facet normal 0 0.707107 0.707107
outer loop
vertex -7.1594 -3.375 2.28036
@ -951,20 +951,6 @@ solid OpenSCAD_Model
vertex -7.1594 3.225 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 3.225 1
vertex -7.1594 3.225 2.28036
vertex -8.8406 3.225 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 3.225 2.28036
vertex -8.8406 3.225 1
vertex -7.1594 3.225 1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -7.1594 4.195 1
@ -979,6 +965,20 @@ solid OpenSCAD_Model
vertex -8.8406 4.195 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 3.225 1
vertex -7.1594 3.225 2.28036
vertex -8.8406 3.225 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 3.225 2.28036
vertex -8.8406 3.225 1
vertex -7.1594 3.225 1
endloop
endfacet
facet normal 0 0.707107 0.707107
outer loop
vertex -7.1594 4.195 2.28036
@ -1049,20 +1049,6 @@ solid OpenSCAD_Model
vertex -7.1594 10.795 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 10.795 1
vertex -7.1594 10.795 2.28036
vertex -8.8406 10.795 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 10.795 2.28036
vertex -8.8406 10.795 1
vertex -7.1594 10.795 1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -7.1594 11.765 1
@ -1077,6 +1063,20 @@ solid OpenSCAD_Model
vertex -8.8406 11.765 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 10.795 1
vertex -7.1594 10.795 2.28036
vertex -8.8406 10.795 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 10.795 2.28036
vertex -8.8406 10.795 1
vertex -7.1594 10.795 1
endloop
endfacet
facet normal 0 0.707107 0.707107
outer loop
vertex -7.1594 11.765 2.28036
@ -1147,20 +1147,6 @@ solid OpenSCAD_Model
vertex -7.1594 18.365 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 18.365 1
vertex -7.1594 18.365 2.28036
vertex -8.8406 18.365 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 18.365 2.28036
vertex -8.8406 18.365 1
vertex -7.1594 18.365 1
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex -7.1594 19.335 1
@ -1175,6 +1161,20 @@ solid OpenSCAD_Model
vertex -8.8406 19.335 1
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex -8.8406 18.365 1
vertex -7.1594 18.365 2.28036
vertex -8.8406 18.365 2.28036
endloop
endfacet
facet normal 0 -1 -0
outer loop
vertex -7.1594 18.365 2.28036
vertex -8.8406 18.365 1
vertex -7.1594 18.365 1
endloop
endfacet
facet normal 0 0.707107 0.707106
outer loop
vertex -7.1594 19.335 2.28036

View File

@ -0,0 +1,125 @@
$fn = 160;
L = 254;
W = 13;
H = 3;
CENTER_D = 6.39;
CENTER_H = 9.76;
SIDE_D = 3.24;
SIDE_L = 11.92;
SIDE_SPACE = 192; //SPACE BETWEEN INNER PARTS
//http://www.cartoonsupplies.com/content/acme-pegbar-plastic
module rounded_bar (arr = [50, 10, 10], fn = 60) {
$fn = fn;
cube([arr[0] - arr[1], arr[1], arr[2]], center = true);
translate ([(arr[0] / 2) - (arr[1] / 2), 0, 0]) {
cylinder(r = arr[1] / 2, h = arr[2], center = true);
}
translate ([-(arr[0] / 2) + (arr[1] / 2), 0, 0]) {
cylinder(r = arr[1] / 2, h = arr[2], center = true);
}
}
module animation_peg_bar () {
rounded_bar([L, W, H], $fn);
//cube([20, W, H], center = true);
translate([0, 0, (CENTER_H / 2) - .5]) center_peg(CENTER_D, CENTER_H);
translate([(SIDE_SPACE / 2) + (SIDE_L / 2), 0, (CENTER_H / 2) + .3 ]) side_peg(SIDE_D, SIDE_L, CENTER_H);
translate([-(SIDE_SPACE / 2) - (SIDE_L / 2), 0, (CENTER_H / 2) + .3 ]) side_peg(SIDE_D, SIDE_L, CENTER_H);
}
module center_peg (D = 6, H = 9) {
cylinder(r = D / 2, h = H - (D / 2), center = true);
translate([0, 0, (H / 2) - (D / 4)]) {
difference () {
sphere(r = D / 2, center = true);
translate([0, 0, -D]) cube([D*2, D*2, D*2], center = true);
}
}
}
module side_peg (D = 3, L = 11, H = 9) {
rounded_bar([L, D, H - (D / 2)], fn = $fn);
translate([0, 0, (H / 2) - (D / 4)]) {
difference () {
union () {
rotate([0, 90, 0]) cylinder(r = D / 2, h = L - D, center = true);
translate([(L / 2) - (D / 2), 0, 0]) sphere(r = D / 2, center = true);
translate([-(L / 2) + (D / 2), 0, 0]) sphere(r = D / 2, center = true);
}
translate([0, 0, -L]) cube([L * 2, L * 2, L * 2], center = true);
}
}
}
module small_printer_animation_peg_bar () {
difference () {
animation_peg_bar();
translate([150 + 20, 0, 0]) cube([300, 300, 300], center = true);
translate([20, 0, .75]) {
difference (){
cube([5, 13 + 1, 1.5], center = true);
cube([5, 4, 10], center = true);
}
}
}
translate([20, 20, 0]) {
difference () {
animation_peg_bar();
translate([150 - 20, 0, 0]) cube([300, 300, 300], center = true);
translate([-20, 0, -.75]) {
cube([5, 13 + 1, 1.5], center = true);
cube([5, 4, 10], center = true);
}
}
}
}
module three_piece_animation_peg_bar () {
difference () {
animation_peg_bar();
translate([150 + (254 / 6), 0, 0]) cube([300, 300, 300], center = true);
translate([-150 - (254 / 6), 0, 0]) cube([300, 300, 300], center = true);
translate([(254 / 6), 0, .75]) {
difference (){
cube([5, 13 + 1, 1.5], center = true);
cube([5, 4, 10], center = true);
}
}
translate([-(254 / 6), 0, .75]) {
difference (){
cube([5, 13 + 1, 1.5], center = true);
cube([5, 4, 10], center = true);
}
}
}
translate([(254 / 3), 20, 0]) {
difference () {
animation_peg_bar();
translate([150 - (254 / 6), 0, 0]) cube([300, 300, 300], center = true);
translate([-(254 / 6), 0, -.75]) {
cube([5, 13 + 1, 1.5], center = true);
cube([5, 4, 10], center = true);
}
}
}
translate([(254 / 3), -20, 0]) {
difference () {
animation_peg_bar();
translate([150 - (254 / 6), 0, 0]) cube([300, 300, 300], center = true);
translate([-(254 / 6), 0, -.75]) {
cube([5, 13 + 1, 1.5], center = true);
cube([5, 4, 10], center = true);
}
}
}
}
//small_printer_animation_peg_bar();
//three_piece_animation_peg_bar();
animation_peg_bar();