Created
October 3, 2012 19:16
-
-
Save buhii/3829141 to your computer and use it in GitHub Desktop.
magnet holder 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rod_radius = 1.2 / 2; // + 0.63; | |
magnet_height = 3.0; | |
magnet_radius = 3.0; | |
holder_length = 8.0; | |
holder_width = 11.0; | |
holder_edge = 6.0; | |
module magnet_holder() | |
{ | |
difference() { | |
intersection() { | |
union() { | |
translate([-magnet_height / 2, 0, 0]) | |
#cube([8 + magnet_height / 2, holder_width, holder_edge]); | |
} | |
rotate([0, -45, 0]) | |
translate([0, 0, -magnet_height / 2]) | |
#cube([holder_length, holder_width, 6]); | |
} | |
translate([0, 1.5, 0]) | |
union() { | |
rotate([0, 90, 0]) { | |
translate([-magnet_radius, 4, -magnet_radius]) | |
#cylinder(r=magnet_radius, h=magnet_height, $fn=50); | |
} | |
rotate([0, -45, 0]) { | |
translate([magnet_radius, 4, -magnet_radius]) | |
#cylinder(r=magnet_radius, h=magnet_height, $fn=50); | |
} | |
} | |
} | |
} | |
module rod() { | |
rotate([90, 0, 0]) | |
# cylinder(r=rod_radius, h=22, $fn=50, center=true); | |
} | |
rotate([0, 135, 0]) { | |
difference() { | |
magnet_holder(); | |
translate([1.24, 3.000, 3.000]) | |
rod(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment