Fixed SCAD and Updated
Scad source was missing the line PC_H = 13; Added rendering options and removed static $fn assignments. Added ability to use a parameter to select rendering pin/plug/both. Minor cleanup of differences for preview view.
This commit is contained in:
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
*~
|
||||||
|
*.tar*
|
||||||
|
*.new
|
||||||
|
*.bak
|
||||||
|
out.*
|
||||||
|
[._]*.sw[a-p]
|
||||||
11
README.txt
11
README.txt
@@ -1 +1,10 @@
|
|||||||
Lian Li PC-60A front-side connectors by srepmub on Thingiverse: https://www.thingiverse.com/thing:215612
|
Lian Li PC-60A front-side connectors
|
||||||
|
|
||||||
|
Original by srepmub on Thingiverse: https://www.thingiverse.com/thing:215612
|
||||||
|
|
||||||
|
These are tested working replicas of the clips used by LianLi to hold the
|
||||||
|
front panel on a PC-60 case; they were also used on other cases including the
|
||||||
|
PC-9F.
|
||||||
|
|
||||||
|
Plug will mate snugly with original pins.
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
PC_THICK=1.5;
|
PC_THICK=1.5;
|
||||||
PC_W=14.5;
|
PC_W=14.5;
|
||||||
PC_D=9.5;
|
PC_D=9.5;
|
||||||
|
PC_H=13;
|
||||||
|
|
||||||
PLAY=0.1;
|
PLAY=0.1;
|
||||||
|
|
||||||
@@ -33,11 +34,23 @@ WING_D=2;
|
|||||||
|
|
||||||
CLIP_W=7;
|
CLIP_W=7;
|
||||||
|
|
||||||
|
PRINT="both"; // [pin, plug, both]
|
||||||
|
|
||||||
|
/* [Render Options] */
|
||||||
|
render_fs=.4;
|
||||||
|
render_fn=0;
|
||||||
|
render_fa=.4;
|
||||||
|
|
||||||
|
// Set Render Options
|
||||||
|
$fs= ($preview) ? $fs : render_fs;
|
||||||
|
$fn= ($preview) ? 16 : render_fn;
|
||||||
|
$fa= ($preview) ? $fa : render_fa;
|
||||||
|
|
||||||
module plug_body(r,d) {
|
module plug_body(r,d) {
|
||||||
translate([0,0,-d/2])
|
translate([0,0,-d/2])
|
||||||
minkowski() {
|
minkowski() {
|
||||||
cube([PC_W-r, PLUG_H-r, PC_D+d]);
|
cube([PC_W-r, PLUG_H-r, PC_D+d-.01]);
|
||||||
cylinder(r=r, h=0.01, $fn=20);
|
cylinder(r=r, h=0.01);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -81,18 +94,17 @@ module clip1() {
|
|||||||
module oval_shape(d,d2) {
|
module oval_shape(d,d2) {
|
||||||
translate([0,0,-d2/2])
|
translate([0,0,-d2/2])
|
||||||
scale([1,(OVAL_H+2*d)/(OVAL_W+2*d),1])
|
scale([1,(OVAL_H+2*d)/(OVAL_W+2*d),1])
|
||||||
cylinder(r=(OVAL_W+2*d)/2,h=PC_D+d2,$fn=20);
|
cylinder(r=(OVAL_W+2*d)/2,h=PC_D+d2);
|
||||||
}
|
}
|
||||||
|
|
||||||
module oval() {
|
module oval() {
|
||||||
translate([0,0,-OVAL_D/2])
|
|
||||||
translate([0,-OVAL_H/2+PLUG_H,0])
|
translate([0,-OVAL_H/2+PLUG_H,0])
|
||||||
difference() {
|
difference() {
|
||||||
intersection() {
|
translate([0,0,-OVAL_D/2]) intersection() {
|
||||||
oval_shape(0,0);
|
oval_shape(0,0);
|
||||||
cube([OVAL_W,OVAL_H-2*OVAL_CHOP,2*OVAL_D], center=true);
|
cube([OVAL_W,OVAL_H-2*OVAL_CHOP,2*OVAL_D], center=true);
|
||||||
}
|
}
|
||||||
cylinder(r=HOLE_R,h=OVAL_D,$fn=10);
|
cylinder(r=HOLE_R,h=OVAL_D+.01, center=true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +121,7 @@ module oval_edge() {
|
|||||||
}
|
}
|
||||||
translate([OVAL_W/2+PLUG_THICK,PLUG_H-PLUG_THICK-OVAL_H+1,0]) {
|
translate([OVAL_W/2+PLUG_THICK,PLUG_H-PLUG_THICK-OVAL_H+1,0]) {
|
||||||
intersection() {
|
intersection() {
|
||||||
cylinder(r=2.6, h=PC_D,$fn=20);
|
cylinder(r=2.6, h=PC_D);
|
||||||
translate([-100,-50,0])
|
translate([-100,-50,0])
|
||||||
cube([100,100,100]);
|
cube([100,100,100]);
|
||||||
}
|
}
|
||||||
@@ -135,8 +147,8 @@ module pin() {
|
|||||||
difference() {
|
difference() {
|
||||||
translate([0,LEG_H/2,0])
|
translate([0,LEG_H/2,0])
|
||||||
cube([LEG_W,LEG_H,OVAL_D],center=true);
|
cube([LEG_W,LEG_H,OVAL_D],center=true);
|
||||||
translate([0,LEG_H/2,0])
|
translate([0,LEG_H/2, 0])
|
||||||
cube([LEG_HOLE_W,LEG_H,OVAL_D],center=true);
|
cube([LEG_HOLE_W,LEG_H,OVAL_D+.02],center=true);
|
||||||
}
|
}
|
||||||
|
|
||||||
translate([0,0,-WING_D/2])
|
translate([0,0,-WING_D/2])
|
||||||
@@ -148,7 +160,7 @@ module pin() {
|
|||||||
polygon(points=[[0,FOOT_H/2],[0,FOOT_H],[CLIP_W,FOOT_H],[CLIP_W,FOOT_H/2],[CLIP_W-FOOT_H,0],[CLIP_W-FOOT_H,FOOT_H/2]]);
|
polygon(points=[[0,FOOT_H/2],[0,FOOT_H],[CLIP_W,FOOT_H],[CLIP_W,FOOT_H/2],[CLIP_W-FOOT_H,0],[CLIP_W-FOOT_H,FOOT_H/2]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
translate([0,PLUG_PIN_DELTA*2,0])
|
if (PRINT == "both") translate([0,PLUG_PIN_DELTA*2,0]) plug();
|
||||||
plug();
|
if (PRINT == "plug") plug();
|
||||||
pin();
|
if (PRINT == "pin" || PRINT == "both") pin();
|
||||||
|
|
||||||
|
|||||||
2046
files/pin.stl
Normal file
2046
files/pin.stl
Normal file
File diff suppressed because it is too large
Load Diff
3894
files/plug.stl
Normal file
3894
files/plug.stl
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user