mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-03-14 19:59:45 +01:00
Added screw_keyhole() module.
This commit is contained in:
parent
cec8c3a107
commit
8587d52d1b
@ -3348,6 +3348,7 @@ For an explanation of `screw_polysink()` see <https://hydraraptor.blogspot.com/2
|
||||
| `screw(type, length, hob_point = 0, nylon = false)` | Draw specified screw, optionally hobbed or nylon |
|
||||
| `screw_and_washer(type, length, star = false, penny = false)` | Screw with a washer which can be standard or penny and an optional star washer on top |
|
||||
| `screw_countersink(type, drilled = true)` | Countersink shape |
|
||||
| `screw_keyhole(type, h = 0)` | Make keyhole slot to accept and retain screw head |
|
||||
| `screw_polysink(type, h = 100, alt = false, sink = 0)` | A countersink hole made from stacked polyholes for printed parts, default is flush, `sink` can be used to recess the head |
|
||||
|
||||

|
||||
|
@ -328,6 +328,19 @@ module screw_polysink(type, h = 100, alt = false, sink = 0) { //! A countersink
|
||||
}
|
||||
}
|
||||
|
||||
module screw_keyhole(type, h = 0) { //! Make keyhole slot to accept and retain screw head
|
||||
r = screw_head_radius(type);
|
||||
extrude_if(h) {
|
||||
translate([0, - 2 * r])
|
||||
drill(r + 0.5, 0);
|
||||
|
||||
hull()
|
||||
for(y = [0, -2 * r])
|
||||
translate([0, y])
|
||||
drill(screw_clearance_radius(type), 0);
|
||||
}
|
||||
}
|
||||
|
||||
module screw_and_washer(type, length, star = false, penny = false) { //! Screw with a washer which can be standard or penny and an optional star washer on top
|
||||
washer = screw_washer(type);
|
||||
head_type = screw_head_type(type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user