Added bevel to front. Made all caps thinner (2mm, from 3mm). Added text to the front.
This commit is contained in:
parent
e719bab630
commit
90e654ef0a
10
compile.sh
10
compile.sh
|
@ -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
|
||||
|
||||
|
|
20
lenses.csv
20
lenses.csv
|
@ -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,14 +1,34 @@
|
|||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
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
Loading…
Reference in New Issue