Added bevel to front. Made all caps thinner (2mm, from 3mm). Added text to the front.

This commit is contained in:
Matt McWilliams 2024-03-27 19:11:40 -04:00
parent e719bab630
commit 90e654ef0a
13 changed files with 240250 additions and 61554 deletions

View File

@ -14,9 +14,17 @@ while read line; do
diameter=$(echo "${line}" | awk -F',' '{print $2}')
height=$(echo "${line}" | awk -F',' '{print $3}')
thickness=$(echo "${line}" | awk -F',' '{print $4}')
make=$(echo "${name}" | awk -F'_' '{print $1}')
size=$(echo "${name}" | awk -F'_' '{print $2}')
echo "Compiling ${name}..."
stl="stl/${name}_front_cap.stl"
openscad -o "${stl}" -D "Diameter=${diameter}" -D "Thickness=${thickness}" -D "Height=${height}" scad/front_cap.scad
openscad -o "${stl}" \
-D "Diameter=${diameter}" \
-D "Thickness=${thickness}" \
-D "Height=${height}" \
-D "Make=\"${make}\"" \
-D "Size=\"${size}\"" \
scad/front_cap.scad
python scad/common/c14n_stl.py "${stl}"
done < ./lenses.csv

View File

@ -1,11 +1,11 @@
lens,diameter,height,thickness,confirmed
Pizar_25mm,33.5,5,3,false
Pizar_26mm,33.5,5,3,false
Switar_10mm,33.5,5,3,false
Switar_16mm,33.5,5,3,false
Switar_25mm,33.5,5,3,false
Switar_50mm,43.4,5,3,false
Yvar_16mm,33.5,5,3,false
Yvar_75mm,33.5,5,3,false
Yvar_100mm,33.5,5,3,false
Yvar_150mm,43.5,5,3,false
Pizar_25mm,33.5,5,2,false
Pizar_26mm,33.5,5,2,false
Switar_10mm,33.5,5,2,false
Switar_16mm,33.5,5,2,false
Switar_25mm,33.5,5,2,false
Switar_50mm,43.4,5,2,false
Yvar_16mm,33.5,5,2,false
Yvar_75mm,33.5,5,2,false
Yvar_100mm,33.5,5,2,false
Yvar_150mm,43.5,5,2,false

1 lens diameter height thickness confirmed
2 Pizar_25mm 33.5 5 3 2 false
3 Pizar_26mm 33.5 5 3 2 false
4 Switar_10mm 33.5 5 3 2 false
5 Switar_16mm 33.5 5 3 2 false
6 Switar_25mm 33.5 5 3 2 false
7 Switar_50mm 43.4 5 3 2 false
8 Yvar_16mm 33.5 5 3 2 false
9 Yvar_75mm 33.5 5 3 2 false
10 Yvar_100mm 33.5 5 3 2 false
11 Yvar_150mm 43.5 5 3 2 false

View File

@ -1,15 +1,35 @@
include <./common/common.scad>;
Font = "Liberation Sans";
Diameter = 33.5;
Height = 5;
Thickness = 3;
Thickness = 2;
Make = "Test";
Size = "16mm";
$fn = 200;
module label (pos = [0, 0, 0]) {
translate(pos) rotate([180, 0, 0]) {
translate([0, 4, 0]) linear_extrude(height = 1) {
text(Make, size = 4, font = Font, halign = "center", valign = "center", $fn = 16);
}
translate([0, -4, 0]) linear_extrude(height = 1) {
text(Size, size = 5, font = Font, halign = "center", valign = "center", $fn = 16);
}
}
}
module front_cap () {
difference () {
cylinder(r = R(Diameter) + Thickness, h = Height + Thickness);
translate([0, 0, Thickness]) cylinder(r = R(Diameter), h = Height + Thickness);
//
translate([0, 0, -1]) difference () {
cylinder(r = R(Diameter) + Thickness + 2, h = 2);
cylinder(r1 = R(Diameter) + Thickness - 2, r2 = R(Diameter) + Thickness, h = 2);
}
label([0, 0, 0.25]);
}
}
front_cap();
front_cap();

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff