mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-11 09:53:58 +02:00
Added screw_keyhole() module.
This commit is contained in:
@@ -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(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_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_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 |
|
| `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
|
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);
|
washer = screw_washer(type);
|
||||||
head_type = screw_head_type(type);
|
head_type = screw_head_type(type);
|
||||||
|
Reference in New Issue
Block a user