CalcProgrammer1

Battery connector model openscad code

Jul 24th, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. difference()
  2. {
  3. union()
  4. {
  5. cube([13.55,7.25,7.25]);
  6. translate([7.425,1.125,7.25]) {
  7. cube([5,5,9.85]);
  8. }
  9. translate([1.125 + 2.5,1.125 + 2.5,7.25]) {
  10. cylinder(h=9.85, r=5/2, center=false, $fn=100);
  11. }
  12. translate([1.125, 1.125, 7.25]) {
  13. cube([5, 2.5, 9.85]);
  14. }
  15. }
  16.  
  17. union()
  18. {
  19. translate([1.125+2.5,1.125+2.5,-0.1]) {
  20. cylinder(h=17.25+9.85+0.2, r=(5/2)-1.5, $fn=30);
  21. }
  22. translate([7.425+2.5,1.125+2.5,-0.1]) {
  23. cylinder(h=17.25+9.85+0.2, r=(5/2)-1.5, $fn=30);
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment