Permalink
Browse files

Make the holes rounder by using the special variable. Thanks, @tbuser.

  • Loading branch information...
1 parent 8ebe5ce commit ef366a05e3c4f5962829876937e1b749ea0fad14 @hugs committed Mar 5, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/bitbeam.scad
View
12 src/bitbeam.scad
@@ -3,7 +3,7 @@
// Each bitbeam is 5/16 inches wide. It's length is determined by the number of holes.
// Each hole is 8mm apart from each other
-// The center of holes are 4mm way from each side of the beam
+// The center of holes are about 4mm (technically 5/32 inches) way from each side of the beam.
// The holes are 4.8 mm in diameter.
beam_width = 7.9375; // 5/16 inches
@@ -13,13 +13,13 @@ module beam(number_of_holes) {
projection(cut=true, center=true) {
difference(){
// Draw the beam
- cube([beam_length,beam_width,1]);
+ translate([-4, -beam_width/2, 0])
+ cube([beam_length, beam_width, 1]);
// Cut the holes
- for (x=[40 : 80 : beam_length*10]) {
- scale(.10)
- translate([x,40,-1])
- cylinder(r=24, h=3);
+ for (x=[4 : 8 : beam_length]) {
+ translate([x-4, 0, -1])
+ cylinder(r=2.4, h=3, $fn=30);
}
}
}

0 comments on commit ef366a0

Please sign in to comment.