You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
789 B
24 lines
789 B
/////////////////////////////////////////////////////////////////////////////////
|
|
// Module for four holes along a rectangle for screw threads.
|
|
//
|
|
// Author: Maximilian Stiefel
|
|
// Last modification: 09.07.2017
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
module screw_holes(xdim, ydim, dia, depth)
|
|
{
|
|
/////////////////////////////////////////////////////////////////////////
|
|
// Vars
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
// Action
|
|
/////////////////////////////////////////////////////////////////////////
|
|
union(){
|
|
for(x=[-1, +1])
|
|
for(y=[-1, +1])
|
|
translate([x*xdim/2, y*ydim/2, 0])
|
|
cylinder(r = dia/2, h = depth, center =true);
|
|
}
|
|
}
|
|
|