1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-12 18:33:58 +02:00

barrel_jack: added cutout

This commit is contained in:
Daniel Trnka
2025-03-30 23:19:42 +02:00
parent ad963afb8d
commit 5d0eda87e4

View File

@@ -650,9 +650,11 @@ module barrel_jack(cutout = false) { //! Draw barrel power jack
contact_d = 2; contact_d = 2;
contact_w = 4; contact_w = 4;
inset = 1; inset = 1;
if(cutout) if(cutout) {
; rotate([0, 90, 0])
else { translate([-bore_h, 0])
cylinder(d = bore_d + panel_clearance, h = 100);
} else {
color(grey(20)) rotate([0, 90, 0]) { color(grey(20)) rotate([0, 90, 0]) {
linear_extrude(l, center = true) { linear_extrude(l, center = true) {
difference() { difference() {