mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-04 14:37:24 +02:00
Fixed square nut threads.
This commit is contained in:
@@ -204,18 +204,18 @@ module nut_square(type, brass = false, nylon = false) { //! Draw specified squar
|
|||||||
|
|
||||||
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