Skip to content

Commit dd53a1d

Browse files
Yanai1701berndhahnebach
authored andcommitted
Fix hex socket head screw length
Fixes incorrect threaded length for screws with length l larger than threshold threading length L
1 parent 28e2234 commit dd53a1d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

openscad/hex_socket/hex_socket.scad

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*/
1919
module hex_socket1(d1,d2,b1,b2,b3,k_max,s,t,L,h_max,l){
20-
b = (l <= L) ? l - k_max - h_max :
20+
b = (l <= L) ? l - k_max - h_max :
2121
l < 125 ? b1 :
2222
l < 200 ? b2 :
2323
b3;
@@ -43,7 +43,7 @@ module hex_socket1(d1,d2,b1,b2,b3,k_max,s,t,L,h_max,l){
4343

4444
module hex_socket2(d1,d2,b,k,s,t_min,L,l){
4545
h_unthreaded = (l<= L) ? 0 : l - b;
46-
h_threaded = (l<= L) ? l : l - b;
46+
h_threaded = (l<= L) ? l : b;
4747

4848
BOLTS_check_dimension_positive(h,"l too short");
4949

@@ -59,4 +59,3 @@ module hex_socket2(d1,d2,b,k,s,t_min,L,l){
5959
translate([0,0,-k]) BOLTS_hex_socket_neg(t_min,s);
6060
}
6161
}
62-

0 commit comments

Comments
 (0)