mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-24 08:02:57 +02:00
Printed foot assembly can now omit the top washer when space is at a premium.
Now correctly shows the screw in the squeezed position.
This commit is contained in:
@@ -67,18 +67,18 @@ module foot(type = foot) { //! Generate STL
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module foot_assembly(t = 0, type = foot, flip = false) { //! Assembly with fasteners in place for specified sheet thickness
|
module foot_assembly(t = 0, type = foot, flip = false, no_washer = false) { //! Assembly with fasteners in place for specified sheet thickness
|
||||||
screw = foot_screw(type);
|
screw = foot_screw(type);
|
||||||
nut = screw_nut(screw);
|
nut = screw_nut(screw);
|
||||||
squeeze = 0.5;
|
squeeze = 0.5;
|
||||||
screw_length = screw_length(screw, foot_thickness(type) + t - squeeze, 2, nyloc = true);
|
screw_length = screw_length(screw, foot_thickness(type) + t - squeeze, no_washer ? 1 : 2, nyloc = true);
|
||||||
|
|
||||||
vflip() explode(15, true) {
|
vflip() explode(15, true) {
|
||||||
stl_colour(pp4_colour) foot(type);
|
stl_colour(pp4_colour) foot(type);
|
||||||
|
|
||||||
if(t)
|
if(t)
|
||||||
explode(15, true)
|
explode(15, true)
|
||||||
translate_z(foot_thickness(type))
|
translate_z(foot_thickness(type) - squeeze)
|
||||||
if(flip)
|
if(flip)
|
||||||
nut_and_washer(nut, true);
|
nut_and_washer(nut, true);
|
||||||
else
|
else
|
||||||
@@ -87,9 +87,15 @@ module foot_assembly(t = 0, type = foot, flip = false) { //! Assembly with faste
|
|||||||
if(t)
|
if(t)
|
||||||
translate_z(t)
|
translate_z(t)
|
||||||
if(flip)
|
if(flip)
|
||||||
screw_and_washer(screw, screw_length);
|
if(no_washer)
|
||||||
|
screw(screw, screw_length);
|
||||||
|
else
|
||||||
|
screw_and_washer(screw, screw_length);
|
||||||
else
|
else
|
||||||
nut_and_washer(nut, true);
|
if(no_washer)
|
||||||
|
nut(nut, true);
|
||||||
|
else
|
||||||
|
nut_and_washer(nut, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
module insert_foot(type = insert_foot) { //! Generate STL for foot with insert
|
module insert_foot(type = insert_foot) { //! Generate STL for foot with insert
|
||||||
|
@@ -5189,7 +5189,7 @@ inserts don't grip well in rubber.
|
|||||||
|:--- |:--- |
|
|:--- |:--- |
|
||||||
| `fastened_insert_foot_assembly(t = 3, type = insert_foot)` | Assembly with fasteners in place for specified sheet thickness |
|
| `fastened_insert_foot_assembly(t = 3, type = insert_foot)` | Assembly with fasteners in place for specified sheet thickness |
|
||||||
| `foot(type = foot)` | Generate STL |
|
| `foot(type = foot)` | Generate STL |
|
||||||
| `foot_assembly(t = 0, type = foot, flip = false)` | Assembly with fasteners in place for specified sheet thickness |
|
| `foot_assembly(t = 0, type = foot, flip = false, no_washer = false)` | Assembly with fasteners in place for specified sheet thickness |
|
||||||
| `insert_foot(type = insert_foot)` | Generate STL for foot with insert |
|
| `insert_foot(type = insert_foot)` | Generate STL for foot with insert |
|
||||||
| `insert_foot_assembly(type = insert_foot)` | Printed part with insert in place |
|
| `insert_foot_assembly(type = insert_foot)` | Printed part with insert in place |
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user