Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Red Connector Piece Model
- // Based on measurements from calipers
- $fn = 100;
- // Main dimensions
- horizontal_cylinder_dia = 4.5;
- horizontal_cylinder_width = 14.7;
- slice_width = 7.5;
- slice_height = 5;
- slice_depth = 1;
- top_cylinder_dia = 3.8;
- top_cylinder_height = 4.7;
- top_lip_dia = 4.9;
- top_lip_height = 1.5;
- vertical_width = 3.8;
- vertical_thickness_middle = 5.3;
- vertical_thickness_bottom = 4.7;
- vertical_height_top = 5.7;
- leg_width = 5.4;
- leg_depth = 4.6;
- leg_height = 9.6;
- groove_diameter = 4.0;
- // Head
- union() {
- cylinder(d=top_cylinder_dia, h=top_cylinder_height);
- translate([0, 0, top_cylinder_height]) {
- cylinder(d=top_lip_dia, h=top_lip_height);
- }
- }
- difference() {
- union() {
- // Arms
- rotate([90, 0, 0])
- cylinder(d=horizontal_cylinder_dia, h=horizontal_cylinder_width, center=true);
- // Body
- translate([.45, 0, -3.85]) {
- cube([3.7, 3.7, 8], center=true);
- }
- }
- // Slice
- translate([1.5,0,1]) {
- rotate([-45, 0, 90])
- cube([slice_width, slice_depth, slice_height],center=true);
- }
- }
- // Legs
- difference() {
- union() {
- union() {
- translate([0, 0, -9.4]) {
- cube([4.6, 14.6, 3.8], center=true);
- translate([0, 4.6, -3]) {
- cube([ 4.6, 5.4, 9.6], center=true);
- }
- translate([0, -4.6, -3]) {
- cube([ 4.6, 5.4, 9.6], center=true);
- }
- }
- }
- translate([-3, 0, 0]) {
- rotate([0, -5, 0])
- hull() {
- // Rectangular base part (now horizontal)
- translate([-0.1, -(3.7/2), -10]) {
- cube([3.5, 3.7, 3.5]);
- }
- // Cylindrical top part (now horizontal)
- translate([0, 0, 1.5]) {
- rotate([0, 90, 0]) // Rotate cylinder to be horizontal
- cylinder(h=3.5, r=3.7/2);
- }
- }
- }
- }
- translate([-5, 0, -12]) {
- rotate([90, 0, 0])
- cylinder(h=15, r=4, center=true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment