1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-01 05:00:14 +02:00

Reduced printed box screw inset when top_thickness is zero.

This commit is contained in:
Chris Palmer
2020-04-20 17:53:26 +01:00
parent 026b9daf59
commit b9890ca589

View File

@@ -71,7 +71,7 @@ function pbox_mid_offset(type) = pbox_ridges(type).y + pbox_wall(type) / 2; // O
function pbox_screw_inset(type) = //! How far the base screws are inset
let(foot = pbox_foot(type),
r = foot ? foot_diameter(foot) / 2 : washer_radius(pbox_washer(type)),
r = foot ? foot_diameter(foot) / 2 : pbox_base(type) ? washer_radius(pbox_washer(type)) : insert_hole_radius(pbox_insert(type)),
R = pbox_radius(type)
) max(r, R - (R - r) / sqrt(2));