24 lines
557 B
OpenSCAD
24 lines
557 B
OpenSCAD
|
|
length = 115.5;
|
|
width = 10;
|
|
height = 20;
|
|
|
|
peg_width = 2;
|
|
how_many_pegs = 16.0;
|
|
peg_height = 12;
|
|
|
|
p_dist = (length-peg_width)/how_many_pegs;
|
|
|
|
include <BOSL2/std.scad>
|
|
|
|
difference(){
|
|
cube([length, width, height]);
|
|
for ( i = [0:how_many_pegs] ) {
|
|
translate([i*p_dist + peg_width, -4, height - peg_height])
|
|
translate([(p_dist-peg_width)/2, (width+8)/2, (peg_height + 5)/2])
|
|
cuboid([p_dist-peg_width, width + 8, peg_height + 5], rounding=2.5);
|
|
}
|
|
}
|
|
|
|
echo((length-peg_width)/how_many_pegs);
|
|
echo((length-peg_width)/how_many_pegs - peg_width);
|