38 lines
916 B
OpenSCAD
38 lines
916 B
OpenSCAD
|
// screwShapes1
|
||
|
|
||
|
|
||
|
module flatHeadM3(length) {
|
||
|
headMax = 6.0;
|
||
|
headMin = 3.2;
|
||
|
headHeight = 2.01;
|
||
|
cylinder(d1 = 6.0, d2 = 3.2, h = headHeight + 0.01);
|
||
|
translate([0, 0, headHeight]) cylinder(d = headMin, h = length - headHeight);
|
||
|
}
|
||
|
|
||
|
module flatHeadM4(length) {
|
||
|
headMax = 7.0;
|
||
|
headMin = 4.2;
|
||
|
headHeight = 3.0;
|
||
|
cylinder(d1 = headMax, d2 = headMin, h = headHeight + 0.01);
|
||
|
translate([0, 0, headHeight]) cylinder(d = headMin, h = length - headHeight);
|
||
|
}
|
||
|
|
||
|
module hexHeadM4(length) {
|
||
|
headDiam = 6.3;
|
||
|
headHeight = 4.2;
|
||
|
cylinder(d = headDiam, h = headHeight);
|
||
|
translate([0, 0, headHeight]) cylinder(d = 4.4, h = length);
|
||
|
}
|
||
|
|
||
|
module hexHeadM6(length) {
|
||
|
headDiam = 10.0;
|
||
|
headHeight = 6.0;
|
||
|
cylinder(d = headDiam, h = headHeight);
|
||
|
translate([0, 0, headHeight]) cylinder(d = 6.4, h = length);
|
||
|
}
|
||
|
|
||
|
module nutM6() {
|
||
|
cylinder(d = 11.5, h = 5.0, $fn = 6);
|
||
|
}
|
||
|
|