SideboardLED/3dprinted/LEDend.scad

22 lines
603 B
OpenSCAD
Raw Permalink Normal View History

2018-12-08 00:48:04 +01:00
// Define all parameter
tupeDiameter=20;
tupeInsideDiameter=15.5;
2018-12-10 16:25:47 +01:00
tupeInsideDiameter2=17;
2018-12-08 00:48:04 +01:00
materialWidth=3;
2018-12-10 16:25:47 +01:00
materialWidthInside=5;
2018-12-08 00:48:04 +01:00
cableHole=2;
percentOpen=65;
// Cover
difference() {
union() {
2018-12-10 16:25:47 +01:00
translate([0,0,-materialWidth/2]) cylinder(d1=tupeInsideDiameter, d2=tupeInsideDiameter2, h=materialWidthInside, center=true, $fn=200);
translate([0,0,materialWidth/2]) cylinder(d=tupeDiameter, h=materialWidth, center=true, $fn=180);
}
2018-12-08 00:48:04 +01:00
union() {
translate([0,tupeInsideDiameter*(100-percentOpen)/100,0]) cube([cableHole,tupeInsideDiameter,materialWidth*3], center=true);
}
}