mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-06 15:36:30 +02:00
Nuts shown on jacks and fuseholders only shown threaded when exploded.
This commit is contained in:
@@ -68,7 +68,7 @@ module fuseholder(thickness) { //! Fuseholder with nut in place for specified pa
|
|||||||
colour = grey(40);
|
colour = grey(40);
|
||||||
vflip()
|
vflip()
|
||||||
translate_z(thickness)
|
translate_z(thickness)
|
||||||
explode(height) {
|
explode(height, explode_children = true) {
|
||||||
color(colour) {
|
color(colour) {
|
||||||
tube(or = nut_d / 2, ir = thread_d / 2, h = nut_flange_t, center = false);
|
tube(or = nut_d / 2, ir = thread_d / 2, h = nut_flange_t, center = false);
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ module fuseholder(thickness) { //! Fuseholder with nut in place for specified pa
|
|||||||
circle(d = thread_d);
|
circle(d = thread_d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(show_threads)
|
if(show_threads && exploded())
|
||||||
female_metric_thread(thread_d, thread_p, nut_t, false, colour = colour);
|
female_metric_thread(thread_d, thread_p, nut_t, false, colour = colour);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
@@ -77,12 +77,12 @@ module jack_4mm(colour, thickness, display_colour = false) { //! Draw a 4mm jack
|
|||||||
spade(spade4p8l, spade);
|
spade(spade4p8l, spade);
|
||||||
}
|
}
|
||||||
translate_z(-thickness)
|
translate_z(-thickness)
|
||||||
explode(-length)
|
explode(-length, explode_children = true)
|
||||||
vflip() {
|
vflip() {
|
||||||
color(silver)
|
color(silver)
|
||||||
tube(ir = thread_d / 2, or = nut_d / 2, h = nut_t, center = false);
|
tube(ir = thread_d / 2, or = nut_d / 2, h = nut_t, center = false);
|
||||||
|
|
||||||
if(show_threads)
|
if(show_threads && exploded())
|
||||||
female_metric_thread(thread_d, thread_p, nut_t, false, colour = silver);
|
female_metric_thread(thread_d, thread_p, nut_t, false, colour = silver);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user