mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2025-01-11 10:12:43 -05:00
Fixed square nut threads.
This commit is contained in:
parent
0738893510
commit
b6a32b6b41
@ -204,18 +204,18 @@ module nut_square(type, brass = false, nylon = false) { //! Draw specified squar
|
||||
|
||||
colour = brass ? brass_colour : nylon ? grey30 : grey70;
|
||||
color(colour)
|
||||
difference() {
|
||||
linear_extrude(height = thickness) {
|
||||
difference() {
|
||||
square([width, width], center = true);
|
||||
difference() {
|
||||
linear_extrude(height = thickness) {
|
||||
difference() {
|
||||
square([width, width], center = true);
|
||||
|
||||
circle(hole_rad);
|
||||
circle(hole_rad);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(show_threads)
|
||||
female_metric_thread(thread_d, metric_coarse_pitch(thread_d), thickness, center = false, colour = colour);
|
||||
}
|
||||
}
|
||||
if(show_threads)
|
||||
female_metric_thread(thread_d, metric_coarse_pitch(thread_d), thickness, center = false, colour = colour);
|
||||
}
|
||||
|
||||
function nut_trap_radius(nut, horizontal = false) = nut_radius(nut) + (horizontal ? layer_height / 4 : 0); //! Radius across the corners of a nut trap
|
||||
|
Loading…
x
Reference in New Issue
Block a user