aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nikon_lens_2x2.scad21
1 files changed, 11 insertions, 10 deletions
diff --git a/nikon_lens_2x2.scad b/nikon_lens_2x2.scad
index 5a353ce..e1b7248 100644
--- a/nikon_lens_2x2.scad
+++ b/nikon_lens_2x2.scad
@@ -2,15 +2,16 @@ use <gridfinity.scad>
$fn=50;
// diameter (not radius!)
-throat = 44;
-inner = 47; // ?
-outer = 60; // ?
+throat = 44.5;
+inner = 47.5;
+outer = 57;
-lip_width = 2; // ?
-lip_height = 2; // ?
-lip_positions = [[50,35], [55,150], [55,265]];
+lip_width = 1.7;
+lip_height = 1.9;
+lip_positions = [[50,-35], [55,-155], [55,-270]];
+lip_offset = 0.8;
-flange_height = 15;
+flange_height = 10;
size_x = 2;
size_y = 2;
@@ -28,7 +29,7 @@ module rounding_circle(radius, corner_radius, angle) {
module lip(angle, offs) {
rotate([0,0,offs]) translate([0,0,lip_height/2])
rotate_extrude(angle=angle)
- translate([inner/2 - lip_width/2,0,0]) square([lip_width,lip_height], center=true);
+ translate([inner/2 +0.1 - lip_width/2,0,0]) square([lip_width,lip_height], center=true);
}
module nikon_f_flange() {
@@ -40,7 +41,7 @@ module nikon_f_flange() {
translate([0,0,flange_height-1]) rounding_circle(29,1,0);
}
- translate([0,0,flange_height - lip_height]) {
+ translate([0,0,flange_height - lip_height - lip_offset]) {
for (i = lip_positions) {
lip(i[0],i[1]);
}
@@ -55,4 +56,4 @@ translate(gf_top_center(size_x,size_y,size_z)) {
linear_extrude(1) text("Nikon", size = 7, font="sans:style=bold italic");
}
-translate(gf_top_center(size_x,size_y,size_z)) rounding_circle(32.99,3,180);
+translate(gf_top_center(size_x,size_y,size_z)) rounding_circle(outer/2 + 3 - 0.01,3,180);