Add bottom bevel

This commit is contained in:
Quinn
2022-01-09 16:42:42 -08:00
parent 0520dd8cc1
commit afaefc0565
+28 -16
View File
@@ -5,7 +5,8 @@ include<shapes.scad>;
$fn = 32; $fn = 32;
collar_r = 34.7/2; collar_r = 34.7/2;
collar_h = 8.7; // short collar: 8.7, full: 18 short_collar = 8.7;
full_collar = 18;
shaft_r = 9/2; //should roughly match shaft for best feel shaft_r = 9/2; //should roughly match shaft for best feel
//inner radius at bottom of official collar is 13.2 //inner radius at bottom of official collar is 13.2
@@ -30,10 +31,10 @@ rotate([0,0,0]){
* OCTNR corner test (seems to also match OCTN, nice!) * OCTNR corner test (seems to also match OCTN, nice!)
* shaft(shaft_r, pivot_depth, [cardinal_throw+1.95,0,45]); * shaft(shaft_r, pivot_depth, [cardinal_throw+1.95,0,45]);
*/ */
juqs(model = SQR, ver = VERSION); juqs(model = SQR, ver = VERSION, collar_h = short_collar);
} }
module juqs(model, ver) { module juqs(model, ver, collar_h = short_collar) {
rotate([0,0,0]) { rotate([0,0,0]) {
difference() { difference() {
difference() { difference() {
@@ -41,19 +42,21 @@ module juqs(model, ver) {
base(); base();
collar(collar_h); collar(collar_h);
}; };
translate([0,0,-pivot_depth]){ bevels(collar_h) {
if(model == CIR) translate([0,0,-pivot_depth]){
cir_gate(cardinal_throw, shaft_r); if(model == CIR)
if(model == SQR) cir_gate(cardinal_throw, shaft_r);
shape_gate(sqr_poly, cardinal_throw, shaft_r); if(model == SQR)
if(model == OCT) shape_gate(sqr_poly, cardinal_throw, shaft_r);
shape_gate(oct_poly, cardinal_throw, shaft_r); if(model == OCT)
if(model == OCTR) shape_gate(oct_poly, cardinal_throw, shaft_r);
octr_gate(cardinal_throw, shaft_r); if(model == OCTR)
if(model == OCTN) octr_gate(cardinal_throw, shaft_r);
shape_gate(octn_poly, cardinal_throw, shaft_r); if(model == OCTN)
if(model == OCTNR) shape_gate(octn_poly, cardinal_throw, shaft_r);
octnr_gate(cardinal_throw, shaft_r); if(model == OCTNR)
octnr_gate(cardinal_throw, shaft_r);
}
} }
}; };
translate([0, -11, -0.1]) { translate([0, -11, -0.1]) {
@@ -73,6 +76,15 @@ module juqs(model, ver) {
//oct_hollow(cardinal_throw, shaft_r, pivot_depth); //oct_hollow(cardinal_throw, shaft_r, pivot_depth);
}; };
module bevels(pivot_depth, collar_height, size = 1){
translate([0,0,-0.1])
linear_extrude(size + 0.1)
projection(cut = true)
translate([0,0,-size])
children();
children();
}
module shaft(r, depth, rotation) { module shaft(r, depth, rotation) {
translate([0,0,-pivot_depth]){ translate([0,0,-pivot_depth]){
rotate(rotation) rotate(rotation)