This is a pretty generic part that allows you to connects two shafts/rods perpendicular to each other! The 8-8mm version is used in the RepRap for the diagonal tie brackets, to connect the 8mm threaded rod to the 8mm diameter studs.
You can specify the diameters of each of the holes.
In version two you have more control over the sizes of the exterior of the shafts. One of the shafts needs more material, because in the Z-direction the part will be weaker. Shaft 2 can be very thin, configure this with a higher negative value of \"shaft_2_exterior_difference\".
Note: It requires my teardrop.scad module to be present in the same directory, but you can uncomment my module at the bottom of the script.
Tip for RepRap Darwin users: I designed this part to have thinner rods as diagonals. This reduces the weight of your machine. M3 rods are more than strong enough! This will save the weight difference for each of the 10 diagonal rods! You can probably save about 1 kg.
// USER PARAMETERS
// The diameter of the two shafts
shaft1_dia = 8;
shaft2_dia = 8;
// How much material should be around the holes:
outset_h = 7.0; // minimum mm of material around holes, horizontal
outset_v = 5.0; // vertical outset
roombetween = 1; //mm between holes
// you can reduce the exterior for shaft 2 (the vertical one) by using a negative number here. This is advised to save material, because in the XY-plane the material is very strong compared to the Z-direction
// An overhang that your machine prints well without supports
max_overhang = 30; // rule of thumb: 45
minimize_material = true; // gives the top section a fancy shape, that also reduces the amount of material needed!