RP and DES update

Added choc 1.5 mods
updated RP dish
minor adjustment on DES corne
This commit is contained in:
pseudoku 2019-08-13 19:25:21 -05:00
parent 7fe904988f
commit 58149501e2
3 changed files with 149 additions and 107 deletions

View file

@ -9,18 +9,35 @@ use <skin.scad>
//DES (Distorted Elliptical Saddle) Choc Chord version Chicago Stenographer with sculpted gergo thumb cluter
/*Tester */
keycap(keyID = 3, cutLen = 0, Stem =true, Dish = true, Stab = 0 , visualizeDish = false, crossSection = false, homeDot = false, Legends = false);
keycap(keyID = 1, cutLen = -ChocCut, Stem =true, Dish = true, Stab = 0 , visualizeDish = false, crossSection = false, homeDot = false, Legends = false);
//Test Mods
translate([0,20, 0])keycap(keyID = 2, cutLen = -ChocCut, Stem =true, Dish = true, Stab = 0 , visualizeDish = false, crossSection = false, homeDot = false, Legends = false);
translate([0,40, 0])rotate([0,0,180])keycap(keyID = 1, cutLen = -ChocCut, Stem =true, Dish = true, Stab = 0 , visualizeDish = false, crossSection = false, homeDot = false, Legends = false);
translate([24,0, 0])keycap(keyID = 8, cutLen = -ChocCut, Stem =true, Dish = true, Stab = 0 , visualizeDish = false, crossSection = false, homeDot = false, Legends = false);
translate([24,20, 0])keycap(keyID = 9, cutLen = -ChocCut, Stem =true, Dish = true, Stab = 0 , visualizeDish = false, crossSection = false, homeDot = false, Legends = false);
translate([24,40, 0])rotate([0,0,180])keycap(keyID = 8, cutLen = -ChocCut, Stem =true, Dish = true, Stab = 0 , visualizeDish = false, crossSection = false, homeDot = false, Legends = false);
// translate([0,19, 0])keycap(keyID = 3, cutLen = 0, Stem =true, Dish = true, visualizeDish = true, crossSection = true, homeDot = false, Legends = false);
// translate([0,38, 0])mirror([0,1,0])keycap(keyID = 2, cutLen = 0, Stem =true, Dish = true, visualizeDish = false, crossSection = true, homeDot = false, Legends = false);
RowHome = [0,2.5,5,2.5,0,0];
//for(Col = [0:0]){
// for(Row = [1:2]){
// translate([19*Col, 19*Row +RowHome[Col], 0])keycap(keyID = Col*4+Row, cutLen = 0, Stem = true, Dish = true, visualizeDish = true, crossSection = true,Legends = false);
// }
//}
ChocCut = 0;
// Levee Test
// translate([19*0, 5, 0])rotate([-15,0,0])
// keycap(keyID = 9, cutLen = -ChocCut, Stem = thumbStem, Dish = thumbDish, visualizeDish = thumbVis, crossSection = thumbSec,Legends = false);
// translate([19*0, 19-5, 0])rotate([15,0,0])
// keycap(keyID = 10, cutLen = ChocCut, Stem = thumbStem, Dish = thumbDish, visualizeDish = thumbVis, crossSection = thumbSec,Legends = false);
// translate([-19+5, 19*.5, .5])rotate([15,0,90])
// keycap(keyID = 11, cutLen = ChocCut, Stem = thumbStem, Dish = thumbDish, visualizeDish = thumbVis, crossSection = thumbSec,Legends = false);
// translate([19*1, 19*1, 0])
// keycap(keyID = 12, cutLen = ChocCut, Stem = thumbStem, Dish = thumbDish, visualizeDish = thumbVis, crossSection = thumbSec,Legends = false);
//Test 1.5 mods
thumbStem = true;
thumbDish = true;
@ -37,7 +54,7 @@ thumbSec = false;
//-Parameters
wallthickness = 1.75;
topthickness = 3; //2 for phat 3 for chicago
stepsize = 40; //resolution of Trajectory
stepsize = 50; //resolution of Trajectory
step = 4; //resolution of ellipes
fn = 32; //resolution of Rounded Rectangles: 60 for output
layers = 40; //resolution of vertical Sweep: 50 for output
@ -53,7 +70,7 @@ stemLayers = 50; //resolution of stem to cap top transition
//#cube([18.16, 18.16, 10], center = true); // sanity check border
//injection param
draftAngle = 2; //degree note:Stem Only
draftAngle = 0; //degree note:Stem Only
//TODO: Add wall thickness transition?
@ -65,13 +82,28 @@ keyParameters = //keyParameters[KeyID][ParameterID]
[17.26, 17.26, 7, 4, 5.5, 0, .0, 5, -0, -0, 2, 3, 1, 1, 1, 4, 2, 2], //Chicago Steno R2/R4
[17.26, 17.26, 7, 4, 4.5, 0, .0, 0, -0, -0, 2, 3, 1, 3, 1, 4, 2, 2], //Chicago Steno R3 flat
//Gergo Thumb Sculpted
[17.06, 35.16, 7, 3, 6.2, 0, 0, -3, -7, -0, 2, 2, 1, 2, 1, 4, 2, 2], //Chicago T0 R1 2u
[17.06, 17.06, 7, 4, 7.4, 0, .0, -6, 4, 0, 2, 2, 1, 2, 1, 4, 2, 2], //Chicago T0 R2 1u
[17.06, 35.16, 7, 3, 6.2, 0, 0, -3, 7, -0, 2, 2, 1, 3, 1, 4, 2, 2], //Chicago T1 R2 2u
[17.06*1.50,17.16, 7, 5, 6.2, 0, 0, -2, 4, 5, 2, 2, 1, 3, 1, 4, 2, 2], //Chicago T2 R1 1.25
[17.16*1.25,17.16, 7, 5, 6.8, 0, 0, -2, 3, -0, 2, 2, 1, 3, 1, 4, 2, 2], //Chicago T3 R1 1.25
[17.26, 17.26, 2, 2, 5, 0, .0, 0, -0, -0, 2, 3, 1, 3, 1, 3, 2, 2] //Phat Fingers Uniform
//Gergo 1.5 mods
[17.06*1.5,17.26, 7, 4, 5.5, 0, .0, 5, 0, -0, 2, 3, 1, 1, 1, 4, 2, 2], //Chicago Steno R2/R4
[17.06*1.5,17.26, 7, 4, 4.5, 0, .0, 0, -0, -0, 2, 3, 1, 3, 1, 4, 2, 2], //Chicago Steno R3flat
//Phat Fingers Uniform
[17.26, 17.26, 2, 2, 5, 0, .0, 0, -0, -0, 2, 3, 1, 3, 1, 3, 2, 2],
//Levee: Chopped Assuming
[17.26, 17.26, 3, 4, 5.5, .5, .0, 2, 5, -0, 2, 3, .5, 1, .5, 1, 2, 2], //Bottom Left
[17.26, 17.26, 3, 4, 5.5, .5, .0, -2, 5, -0, 2, 3, .5, 1, .5, 1, 2, 2], //Top Left
[17.26*1.5, 17.26, 7, 4, 6.5, 0, .0, 2, -0, -0, 2, 3, 1, 1, 1, 4, 2, 2], //Bottom Right
[17.26, 17.26, 7, 4, 5.5, 0, .0, -5, -0, -0, 2, 3, 1, 1, 1, 4, 2, 2], //TOp Right
];
@ -88,8 +120,16 @@ dishParameters = //dishParameter[keyID][ParameterID]
[ 14, 4.5, 3, -40, 8, 1.8, 12, 17, 2, 14, 4, 2, -35, 12, 15, 2], //Chicago T1 R2 2u
[ 6, 4, 2, -35, 8, 1.8, 20, 24, 2, 6, 4, 7, -45, 20, 23, 2], //Chicago T2 R1 1.25
[ 6, 4, 2, -35, 8, 1.8, 15, 17, 2, 6, 4, 7, -45, 15, 15, 2], //Chicago T3 R1 1.25
//Gergo 1.5 mods
[ 6, 4, 7, -50, 8, 1.8, 22, 25, 2, 6, 4, 2, -35, 22, 25, 2], //Chicago Steno mod R2/R4
[ 6, 4, 5, -40, 8, 1.8, 22, 25, 2, 6, 4, 5, -40, 22, 25, 2], //Chicago Steno mod R3 flat
[ 6, 3.5, 7, -50, 5, 1.0, 16, 23, 2, 6, 3.5, 7, -50, 16, 23, 2], //Phat Uniform
[ 5, 4.15, 3, -50, 5, 1.8, 20, 8, 2, 3, 4, -30, 20, 20, 8, 2], //Chicago Steno R2/R4
[ 3, 4.15, -30, 20, 5, 1.8, 20, 8, 2, 5, 4.15, 3, -50, 20, 8, 2], //Chicago Steno R2/R4
[ 6, 4, -25, -50, 20, 3, 22, 25, 2, 6, 4, 5, -35, 22, 25, 2], //Chicago Steno R2/R4
[ 6, 4, 2, -35, 8, 1.8, 11, 15, 2, 6, 4, 7, -50, 11, 17, 2], //Chicago Steno R2/R4n
];
@ -268,6 +308,10 @@ module keycap(keyID = 0, cutLen = 0, visualizeDish = false, rossSection = false,
//Cuts
//Fonts
if(cutLen != 0){
translate([0,sign(cutLen)*(BottomLength(keyID)+CapRound0i(keyID)+abs(cutLen))/2,0])
cube([BottomWidth(keyID)+CapRound1i(keyID)+1,BottomLength(keyID)+CapRound0i(keyID),50], center = true);
}
if(Legends == true){
#rotate([-XAngleSkew(keyID),YAngleSkew(keyID),ZAngleSkew(keyID)])translate([-1,-5,KeyHeight(keyID)-2.5])linear_extrude(height = 1)text( text = "ver2", font = "Constantia:style=Bold", size = 3, valign = "center", halign = "center" );
// #rotate([-XAngleSkew(keyID),YAngleSkew(keyID),ZAngleSkew(keyID)])translate([0,-3.5,0])linear_extrude(height = 0.5)text( text = "Me", font = "Constantia:style=Bold", size = 3, valign = "center", halign = "center" );
@ -275,7 +319,7 @@ module keycap(keyID = 0, cutLen = 0, visualizeDish = false, rossSection = false,
//Dish Shape
if(Dish == true){
if(visualizeDish == false){
translate([-TopWidShift(keyID),.00001-TopLenShift(keyID),KeyHeight(keyID)-DishHeightDif(keyID)])rotate([0,-YAngleSkew(keyID),0])rotate([0,-90+XAngleSkew(keyID),90-ZAngleSkew(keyID)])skin(FrontCurve);
translate([-TopWidShift(keyID),-TopLenShift(keyID),KeyHeight(keyID)-DishHeightDif(keyID)])rotate([0,-YAngleSkew(keyID),0])rotate([0,-90+XAngleSkew(keyID),90-ZAngleSkew(keyID)])skin(FrontCurve);
translate([-TopWidShift(keyID),-TopLenShift(keyID),KeyHeight(keyID)-DishHeightDif(keyID)])rotate([0,-YAngleSkew(keyID),0])rotate([0,-90-XAngleSkew(keyID),270-ZAngleSkew(keyID)])skin(BackCurve);
} else {
#translate([-TopWidShift(keyID),.00001-TopLenShift(keyID),KeyHeight(keyID)-DishHeightDif(keyID)]) rotate([0,-YAngleSkew(keyID),0])rotate([0,-90+XAngleSkew(keyID),90-ZAngleSkew(keyID)])skin(FrontCurve);

View file

@ -13,32 +13,32 @@ Version 2: Eliptical Rectangle
//Stab = 24 for
//TODO add shift
keycap(keyID = 23, cutLen = 0, Stem =true, Dish = true, Stab = 0 , visualizeDish = false, crossSection = false, homeDot = false, Legends = false);
keycap(keyID = 0, cutLen = 0, Stem =true, Dish = true, Stab = 0 , visualizeDish = false, crossSection = false, homeDot = false, Legends = false);
// translate([0,19, 0])keycap(keyID = 3, cutLen = 0, Stem =true, Dish = true, visualizeDish = true, crossSection = true, homeDot = false, Legends = false);
// translate([0,38, 0])mirror([0,1,0])keycap(keyID = 2, cutLen = 0, Stem =true, Dish = true, visualizeDish = false, crossSection = true, homeDot = false, Legends = false);
RowHome = [0,2.5,5,2.5,0,0];
//for(Col = [2:2]){
//for(Col = [0:5]){
// for(Row = [1:3]){
// translate([19*Col, 19*Row +RowHome[Col], 0])keycap(keyID = Col*4+Row, cutLen = 0, Stem = true, Dish = true, visualizeDish = false, crossSection = false,Legends = false);
// translate([19*Col, 19*Row +RowHome[Col], 0])keycap(keyID = Col*4+Row, cutLen = 0, Stem = false, Dish = true, visualizeDish = false, crossSection = false,Legends = false);
// }
//}
////
////// thumb
// translate([-15, -4, 0])rotate([0,0,30])keycap(keyID = 0, cutLen = 0, Stem =false, Dish = true, visualizeDish = false, crossSection = false);
// translate([10, 0, 0])rotate([0,0,15])keycap(key ID = 4, cutLen = 0, Stem =false, Dish = true, visualizeDish = false, crossSection = false);
// translate([31, 2.2, 0])rotate([0,0,0])keycap(keyID = 8, cutLen = 0, Stem =false, Dish = true, visualizeDish = false, crossSection = false);
// translate([6, 0, 0])rotate([0,0,15])keycap(keyID = 4, cutLen = 0, Stem =false, Dish = true, visualizeDish = false, crossSection = false);
// translate([26, 2.2, 0])rotate([0,0,0])keycap(keyID = 8, cutLen = 0, Stem =false, Dish = true, visualizeDish = false, crossSection = false);
//Parameters
wallthickness = 1.75;
wallthickness = 2;
topthickness = 3; //2 for phat 3 for chicago
stepsize = 40; //resolution of Trajectory
step = 4; //resolution of ellipes
fn = 32; //resolution of Rounded Rectangles: 60 for output
stepsize = 50; //resolution of Trajectory
step = 1; //resolution of ellipes
fn = 64; //resolution of Rounded Rectangles: 60 for output
layers = 40; //resolution of vertical Sweep: 50 for output
//---Stem param
slop = 0.3;
slop = 0.25;
stemRot = 0;
stemWid = 7.2;
stemLen = 5.5;
@ -50,33 +50,33 @@ keyParameters = //keyParameters[KeyID][ParameterID]
[
// BotWid, BotLen, TWDif, TLDif, keyh, WSft, LSft XSkew, YSkew, ZSkew, WEx, LEx, CapR0i, CapR0f, CapR1i, CapR1f, CapREx, StemEx
//Column 0
[17.16, 17.16*1.5, 6, 6, 14, 0, 0, -13, -10, -5, 2, 2, 1, 5, 1, 3, 2, 2], //R5 0
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, 10, -10, -5, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16*1.5, 6, 7, 12, 0, 0, -13, 10, -5, 2, 2, 1, 4.85, 1, 3, 2, 2], //R5 0
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, 12, -10, -5, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7+4, 0, 0, -2, -10, -5, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, -10, -10, -5, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 1
[17.16, 17.16, 6, 6, 13, 0, 0, -13, 5, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R5 4
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, 5, -3, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 4, 5, 13, 0, 0, -13, 5, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R5 4
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, 12, -3, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5,7+2.5, 0, 0, -2, -3, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, -12, -3, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 2 middle
[17.16, 17.16, 6, 6, 13, 0, 0, -13, 10, 15, 2, 2, 1, 5, 1, 3, 2, 2], //R5 8
[17.16, 17.16, 6.5, 6.5, 8, 0, 0, 5, 0, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 4, 6, 14, 0, 0, -13, 10, 15, 2, 2, 1, 5, 1, 2, 2, 2], //R5 8
[17.16, 17.16, 6.5, 6.5, 8, 0, 0, 10, 0, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7, 0, 0, -2, 0, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8, 0, 0, -12, 0, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 3
[17.16, 17.16, 6, 6, 11+3, 0, 0, 13, -4, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R5 12
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, 5, -4, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, 10, -4, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7+3, 0, 0, -2, -4, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, -10, -4, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 4
[17.16, 17.16, 6, 6,11+5.5, 0, 0, 13, -10, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R5 16
[17.16, 17.16, 6.5, 6.5,8+5.5, 0, 0, 5, -10, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5,8+5.5, 0, 0, 10, -10, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5,7+5.5, 0, 0, -5, -10, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, -12, 5, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 5
[17.16, 17.16, 6, 6, 11+4, 0, 0, 13, -6, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R5 20
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, 5, -6, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.0, 6.0, 8+4, 0, 0, -8, -6, 15, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7+4, 0, 0, -2, -6, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+6, 0, 0, -12, 10, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
];
@ -85,35 +85,35 @@ dishParameters = //dishParameter[keyID][ParameterID]
[
//FFwd1 FFwd2 FPit1 FPit2 DshDep DshHDif FArcIn FArcFn FArcEx BFwd1 BFwd2 BPit1 BPit2 BArcIn BArcFn BArcEx
//Column 0
[ 9, 4, 10, -42, 4, 1.7, 9.5, 12, 2, 10, 4, 8, -30, 9.5, 20, 2], //R5
[ 6, 3, 15, -50, 5, 1.7, 9.5, 19, 2, 5, 4, 13, -50, 9.5, 16, 2], //R4
[ 6, 3, 18, -50, 5, 1.7, 9.5, 15, 2, 5, 4, 13, -30, 9.5, 16, 2], //R3
[ 6, 3, 18, -50, 5, 1.7, 9.8, 15, 2, 6, 4, 13, -30, 9.8, 16, 2], //R2
[ 8, 4.5, 7, -39, 4, 1.8, 9.5, 15, 2, 10, 4, 8, -30, 9.5, 20, 2], //R5
[ 6, 3, 15, -50, 5, 1.8, 9.5, 19, 2, 4.5, 4.5, 5, -55, 9.5, 16, 2], //R4
[ 6, 3, 18, -50, 5, 1.8, 9.5, 15, 2, 5, 4, 13, -30, 9.5, 16, 2], //R3
[ 6, 3, 18, -50, 5, 1.8, 9.8, 15, 2, 6, 4, 13, -30, 9.8, 16, 2], //R2
//Column 1
[ 5, 4.3, 5, -48, 4, 1.7, 8.8, 10, 2, 6, 4, 13, -30, 8.8, 16, 2], //R5
[ 6, 3, 15, -50, 5, 1.7, 9, 15, 2, 6, 4, 10, -30, 9, 16, 2], //R4
[ 6, 3, 15, -50, 5, 1.7, 9, 15, 2, 5, 4, 13, -30, 9, 16, 2], //R3
[ 6, 3, 12, -50, 5, 1.7, 9, 15, 2, 6, 4, 13, -30, 9, 16, 2], //R2
[ 5, 4.3, 5, -48, 5, 2, 10.5, 10, 2, 6, 4, 13, -30, 10.5, 18, 2], //R5
[ 6, 3, 15, -50, 5, 1.8, 9, 15, 2, 5, 4.2, 5, -55, 9, 16, 2], //R4
[ 6, 3, 15, -50, 5, 1.8, 9, 15, 2, 5, 4, 13, -30, 9, 16, 2], //R3
[ 6, 3, 12, -50, 5, 1.8, 9, 15, 2, 6, 4, 13, -30, 9, 16, 2], //R2
//Column 2
[ 5, 4.3, 5, -48, 4, 1.7, 9.3, 10, 2, 6, 3, 13, -30, 9.3, 24, 2], //R5
[ 6, 3, 18, -50, 5, 1.7, 8.5, 15, 2, 6, 4, 13, -30, 8.5, 15, 2], //R4
[ 6, 3, 18, -50, 5, 1.7, 8.5, 15, 2, 5, 4, 13, -30, 8.5, 15, 2], //R3
[ 6, 3, 18, -50, 5, 1.7, 8.8, 15, 2, 6, 4, 13, 30, 8.8, 16, 2], //R2
[ 5, 4.3, 5, -48, 4, 1.9, 11, 12, 2, 6, 4, 13, -35, 11, 28, 2], //R5
[ 6, 3, 18, -50, 5, 1.8, 8.5, 15, 2, 6, 4, 13, -30, 8.5, 15, 2], //R4
[ 6, 3, 18, -50, 5, 1.8, 8.5, 15, 2, 5, 4, 13, -30, 8.5, 15, 2], //R3
[ 6, 3, 18, -50, 5, 1.8, 8.8, 15, 2, 6, 4, 13, 30, 8.8, 16, 2], //R2
//Column 3
[ 5, 3, 5, -50, 5, 1.5, 8.5, 10, 2, 6, 4, 13, -30, 8.5, 16, 2], //R5
[ 6, 3, 18, -50, 5, 1.6, 9.5, 18, 2, 6, 4, 10, -30, 9.5, 16, 2], //R4
[ 6, 3, 18, -50, 5, 1.8, 9.5, 18, 2, 5, 4, 5, -55, 9.5, 16, 2], //R4
[ 6, 3, 15, -50, 5, 1.6, 9.5, 15, 2, 5, 4, 13, -30, 9.5, 16, 2], //R3
[ 6, 3, 15, -50, 5, 1.6, 9.5, 15, 2, 6, 4, 13, -30, 9.5, 16, 2], //R2
//Column 4
[ 5, 3, 5, -50, 5, 1.7, 8.5, 12, 2, 6, 4, 13, -30, 8.5, 16, 2], //R5
[ 6, 3, 18, -50, 5, 1.7, 9.5, 17, 2, 6, 4, 10, -30, 9.5, 16, 2], //R4
[ 6, 3, 15, -50, 5, 1.7, 9.5, 15, 2, 5, 4, 13, -30, 9.5, 16, 2], //R3
[ 6, 3, 18, -50, 5, 1.7, 9.6, 15, 2, 6, 4, 13, -30, 9.6, 16, 2], //R2
[ 5, 3, 5, -50, 5, 1.8, 8.5, 12, 2, 6, 4, 13, -30, 8.5, 16, 2], //R5
[ 6, 3, 18, -50, 5, 1.8, 9.5, 17, 2, 4, 4.9, 5, -50, 9.5, 18, 2], //R4
[ 6, 3, 15, -50, 5, 1.8, 9.5, 15, 2, 5, 4, 13, -30, 9.5, 16, 2], //R3
[ 6, 3, 18, -50, 5, 1.8, 9.6, 15, 2, 6, 4, 13, -30, 9.6, 16, 2], //R2
//Column 5
[ 5, 3, 5, -50, 5, 1.7, 8.5, 10, 2, 6, 4, 13, -30, 8.5, 16, 2], //R5
[ 6, 3, 18, -50, 5, 1.7, 9.2, 15, 2, 6, 4, 13, -30, 9.2, 16, 2], //R4
[ 6, 3, 18, -50, 5, 1.7, 9.2, 15, 2, 5, 4, 13, -30, 9.2, 16, 2], //R3
[ 6, 3, 18, -50, 5, 1.7, 9.6, 15, 2, 6, 4, 13, -30, 9.6, 16, 2], //R2
[ 5, 3, 5, -50, 5, 1.8, 8.5, 10, 2, 6, 4, 13, -30, 8.5, 16, 2], //R5
[ 5.5, 3, 18, -50, 5, 1.9, 9.2, 15, 2, 5.5, 4, 13, -55, 9.2, 16, 2], //R4
[ 6, 3, 18, -50, 5, 1.8, 9.2, 15, 2, 5, 4, 13, -30, 9.2, 16, 2], //R3
[ 6, 3, 18, -50, 5, 1.8, 9.6, 15, 2, 6, 4, 13, -30, 9.6, 16, 2], //R2
];
function FrontForward1(keyID) = dishParameters[keyID][0]; //

View file

@ -9,7 +9,7 @@ use <skin.scad>
//DP (Distored Pyramidal) [Double Penetration] Profile
//TODO add shift
keycap(keyID = 10, cutLen = 0, Stem =true, Dish = true, visualizeDish = true, crossSection = true, homeDot = false, Legends = false);
keycap(keyID = 9, cutLen = 0, Stem =true, Dish = true, visualizeDish = true, crossSection = false, homeDot = false, Legends = false);
////fullsetee
RowHome = [0,2.5,5,2.5,0,0];
@ -47,35 +47,35 @@ keyParameters = //keyParameters[KeyID][ParameterID]
[
// BotWid, BotLen, TWDif, TLDif, keyh, WSft, LSft XSkew, YSkew, ZSkew, WEx, LEx, CapR0i, CapR0f, CapR1i, CapR1f, CapREx, StemEx
//Column 0
[17.16, 17.16*1.5, 6, 6, 14, 0, 0, -13, -10, -5, 2, 2, 2, 6, 2, 4, 2, 2], //R5 0
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, 10, -10, -5, 2, 2, 2, 6, 2, 4, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7+4, 0, 0, -2, -10, -5, 2, 2, 2, 6, 2, 4, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, -10, -10, -5, 2, 2, 2, 6, 2, 4, 2, 2], //R2
[17.16, 17.16*1.5, 6, 6, 14, 0, 0, -13, -10, -5, 2, 2, 1, 5, 1, 3, 2, 2], //R5 0
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, 10, -10, -5, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7+4, 0, 0, -2, -10, -5, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, -10, -10, -5, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 1
[17.16, 17.16, 6, 6, 13, 0, 0, -13, 5, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R5 4
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, 5, -3, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5,7+2.5, 0, 0, -2, -3, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, -12, -3, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R2
[17.16, 17.16, 6, 6, 13, 0, 0, -13, 5, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R5 4
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, 5, -3, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5,7+2.5, 0, 0, -2, -3, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, -12, -3, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 2 middle
[17.16, 17.16, 6, 6, 13, 0, 0, -13, 10, 15, 2, 2, 2, 6, 2, 4, 2, 2], //R5 8
[17.16, 17.16, 6.5, 6.5, 8, 0, 0, 5, 0, 0, 2, 2, 2, 5, 2, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7, 0, 0, -2, 0, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8, 0, 0, -12, 0, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R2
[17.16, 17.16, 6, 6, 13, 0, 0, -13, 10, 15, 2, 2, 1, 5, 1, 3, 2, 2], //R5 8
[17.16, 17.16, 6.5, 6.5, 7.1, 0, 0, 0, 0, 0, 2, 2, 1, 4.85, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7, 0, 0, -2, 0, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8, 0, 0, -12, 0, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 3
[17.16, 17.16, 6, 6, 11+3, 0, 0, 13, -4, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R5 12
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, 5, -4, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7+3, 0, 0, -2, -4, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, -10, -4, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R2
[17.16, 17.16, 6, 6, 11+3, 0, 0, 13, -4, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R5 12
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, 5, -4, 0, 2, 2, 1, 5, 1, 5, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7+3, 0, 0, -2, -4, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+3, 0, 0, -10, -4, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 4
[17.16, 17.16, 6, 6,11+5.5, 0, 0, 13, -10, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R5 16
[17.16, 17.16, 6.5, 6.5,8+5.5, 0, 0, 5, -10, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5,7+5.5, 0, 0, -5, -10, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, -12, 5, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R2
[17.16, 17.16, 6, 6,11+5.5, 0, 0, 13, -10, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R5 16
[17.16, 17.16, 6.5, 6.5,8+5.5, 0, 0, 5, -10, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5,7+5.5, 0, 0, -5, -10, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, -12, 5, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
//Column 5
[17.16, 17.16, 6, 6, 11+4, 0, 0, 13, -6, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R5 20
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, 5, -6, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7+4, 0, 0, -2, -6, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+6, 0, 0, -12, 10, 0, 2, 2, 2, 6, 2, 4, 2, 2], //R2
[17.16, 17.16, 6, 6, 11+4, 0, 0, 13, -6, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R5 20
[17.16, 17.16, 6.5, 6.5, 8+4, 0, 0, 5, -6, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R4
[17.16, 17.16, 6.5, 6.5, 7+4, 0, 0, -2, -6, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R3 Home
[17.16, 17.16, 6.5, 6.5, 8+6, 0, 0, -12, 10, 0, 2, 2, 1, 5, 1, 3, 2, 2], //R2
];
function BottomWidth(keyID) = keyParameters[keyID][0]; //
@ -101,35 +101,35 @@ dishParameters = //dishParameter[keyID][ParameterID]
[
// EdOf fn LEx WEx DshDep Ch0i, ch1i, Ch0f, Ch1f, DishExp
//Column 0
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R2
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R3
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R4
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R5
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R2
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R3
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R4
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R5
//Column 1
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R2
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R3
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R4
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R5
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R2
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R3
[ 1, .005, 2, 2, 2, 6, 4, .3, .001, 2], //R4
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R5
//Column 2
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R2
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R3
[ .1, .1, 2, 2, 1.5, 1, 1, 3, 3, 1], //R4
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R5
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R2
[ 2, .005, 2, 2, 1.7, 4.85, 3, .001, .001, 2], //R3 DSA
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R4
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R5
//Column 3
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R2
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R3
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R4
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R5
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R2
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R3
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R4
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R5
//Column 4
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R2
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R3
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R4
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R5
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R2
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R3
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R4
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R5
//Column 5
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R2
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R3
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R4
[ .1, .005, 2, 2, 2, .001, .001, .001, .001, 2], //R5
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R2
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R3
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R4
[ 2, .005, 2, 2, 1.5, 6, 4, .001, .001, 2], //R5
];
function EdgeOffset(keyID) = dishParameters[keyID][0]; //
@ -261,8 +261,8 @@ function DishTransform(t, keyID) =
function DishRoundness(t, keyID) =
[
pow(t/dishLayers, ChamExponent(keyID))*(DishCham0f(keyID)) + (1-pow(t/dishLayers, ChamExponent(keyID))*DishCham0i(keyID)),
pow(t/dishLayers, ChamExponent(keyID))*(DishCham1f(keyID)) + (1-pow(t/dishLayers, ChamExponent(keyID))*DishCham1i(keyID))
pow(t/dishLayers, DishExpo(keyID))*(DishCham0f(keyID)) + (1-pow(t/dishLayers, DishExpo(keyID)))*DishCham0i(keyID),
pow(t/dishLayers, DishExpo(keyID))*(DishCham1f(keyID)) + (1-pow(t/dishLayers, DishExpo(keyID)))*DishCham1i(keyID)
];
///----- KEY Builder Module
@ -284,8 +284,6 @@ module keycap(keyID = 0, cutLen = 0, visualizeDish = false, rossSection = false,
union(){
difference(){
skin([for (i=[0:layers-1]) transform(translation(CapTranslation(i, keyID)) * rotation(CapRotation(i, keyID)), elliptical_rectangle(CapTransform(i, keyID), b = CapRoundness(i,keyID),fn=fn))]); //outer shell
for(i=[0:layers-1])echo(CapRoundness(i,keyID));
//Cut inner shell
if(Stem == true){
@ -315,11 +313,11 @@ module keycap(keyID = 0, cutLen = 0, visualizeDish = false, rossSection = false,
//Dish Shape
if(Dish == true){
if(visualizeDish == false){
skin([for (i=[0:dishLayers-1]) transform(translation(DishTranslation(i, keyID)) * rotation(DishRotation(i, keyID)),
skin([for (i=[0:dishLayers]) transform(translation(DishTranslation(i, keyID)) * rotation(DishRotation(i, keyID)),
elliptical_rectangle(DishTransform(i, keyID), b = DishRoundness(i,keyID),fn=fn)
)]);
} else {
#skin([for (i=[0:dishLayers-1]) transform(translation(DishTranslation(i, keyID)) * rotation(DishRotation(i, keyID)),
#skin([for (i=[0:dishLayers]) transform(translation(DishTranslation(i, keyID)) * rotation(DishRotation(i, keyID)),
elliptical_rectangle(DishTransform(i, keyID), b = DishRoundness(i,keyID),fn=fn)
)]);
}
@ -368,7 +366,7 @@ module inside_cherry_cross(slop) {
module cherry_stem(depth, slop) {
difference(){
// outside shape
linear_extrude(height = depth) {
linear_extrude(height = depth-topthickness/2) {
offset(r=1){
square(outer_cherry_stem(slop) - [2,2], center=true);
}