brombomb

Finger

Aug 22nd, 2025
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.27 KB | Source Code | 0 0
  1. // Red Connector Piece Model
  2. // Based on measurements from calipers
  3. $fn = 100;
  4.  
  5. // Main dimensions
  6. horizontal_cylinder_dia = 4.5;
  7. horizontal_cylinder_width = 14.7;
  8.  
  9. slice_width = 7.5;
  10. slice_height = 5;
  11. slice_depth = 1;
  12.  
  13. top_cylinder_dia = 3.8;
  14. top_cylinder_height = 4.7;
  15.  
  16. top_lip_dia = 4.9;
  17. top_lip_height = 1.5;
  18.  
  19. vertical_width = 3.8;
  20. vertical_thickness_middle = 5.3;
  21. vertical_thickness_bottom = 4.7;
  22. vertical_height_top = 5.7;
  23.  
  24. leg_width = 5.4;
  25. leg_depth = 4.6;
  26. leg_height = 9.6;
  27. groove_diameter = 4.0;
  28.  
  29.  
  30. // Head
  31. union() {
  32.     cylinder(d=top_cylinder_dia, h=top_cylinder_height);
  33.  
  34.     translate([0, 0, top_cylinder_height]) {
  35.         cylinder(d=top_lip_dia, h=top_lip_height);
  36.     }
  37. }
  38.  
  39.     difference() {
  40.         union() {
  41.             // Arms
  42.             rotate([90, 0, 0])
  43.                 cylinder(d=horizontal_cylinder_dia, h=horizontal_cylinder_width, center=true);
  44.            
  45.             // Body
  46.             translate([.45, 0, -3.85]) {
  47.                 cube([3.7, 3.7, 8], center=true);
  48.             }
  49.         }
  50.        
  51.         // Slice
  52.         translate([1.5,0,1]) {
  53.         rotate([-45, 0, 90])
  54.             cube([slice_width, slice_depth, slice_height],center=true);
  55.         }
  56.     }
  57.  
  58. // Legs
  59. difference() {
  60.     union() {
  61.         union() {
  62.             translate([0, 0, -9.4]) {
  63.                 cube([4.6, 14.6, 3.8], center=true);
  64.                 translate([0, 4.6, -3]) {
  65.                     cube([ 4.6, 5.4, 9.6], center=true);
  66.                 }
  67.                 translate([0, -4.6, -3]) {
  68.                     cube([ 4.6, 5.4, 9.6], center=true);
  69.                 }
  70.             }
  71.         }
  72.          translate([-3, 0, 0]) {
  73.             rotate([0, -5, 0])
  74.             hull() {
  75.                 // Rectangular base part (now horizontal)
  76.                 translate([-0.1, -(3.7/2), -10]) {
  77.                     cube([3.5, 3.7, 3.5]);
  78.                 }
  79.                 // Cylindrical top part (now horizontal)  
  80.                 translate([0, 0, 1.5]) {
  81.                     rotate([0, 90, 0]) // Rotate cylinder to be horizontal
  82.                     cylinder(h=3.5, r=3.7/2);
  83.                 }
  84.             }
  85.         }
  86.     }
  87.  
  88.     translate([-5, 0, -12]) {
  89.         rotate([90, 0, 0])
  90.         cylinder(h=15, r=4, center=true);
  91.     }
  92. }
  93.  
  94.  
Advertisement
Add Comment
Please, Sign In to add comment