mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-04 06:27:24 +02:00
Fixed square nut threads.
This commit is contained in:
@@ -201,21 +201,21 @@ module nut_square(type, brass = false, nylon = false) { //! Draw specified squar
|
|||||||
desc = brass ? "brass" : nylon ? "nylon" : "";
|
desc = brass ? "brass" : nylon ? "nylon" : "";
|
||||||
vitamin(str("nut(", type[0], arg(brass, false, "brass"), arg(nylon, false, "nylon"),
|
vitamin(str("nut(", type[0], arg(brass, false, "brass"), arg(nylon, false, "nylon"),
|
||||||
"): Nut M", nut_size(type), "nS ", width, " x ", thickness, "mm ", desc));
|
"): Nut M", nut_size(type), "nS ", width, " x ", thickness, "mm ", desc));
|
||||||
|
|
||||||
colour = brass ? brass_colour : nylon ? grey30 : grey70;
|
colour = brass ? brass_colour : nylon ? grey30 : grey70;
|
||||||
color(colour)
|
color(colour)
|
||||||
difference() {
|
difference() {
|
||||||
linear_extrude(height = thickness) {
|
linear_extrude(height = thickness) {
|
||||||
difference() {
|
difference() {
|
||||||
square([width, width], center = true);
|
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
|
function nut_trap_radius(nut, horizontal = false) = nut_radius(nut) + (horizontal ? layer_height / 4 : 0); //! Radius across the corners of a nut trap
|
||||||
|
Reference in New Issue
Block a user