Ready to render v3

This commit is contained in:
mmcwilliams 2020-05-29 10:24:41 -04:00
parent 7c01705785
commit 82fa532c1c
3 changed files with 22 additions and 11 deletions

View File

@ -3,7 +3,6 @@
include <../libraries/gnal_v3.scad>;
SPOKE_COUNT = 24;
PART="";
module gnal_100ft_spiral (spiral_count = 60, od = 298.75) {
outer_d = 299;
@ -109,15 +108,15 @@ module gnal_100ft_spiral (spiral_count = 60, od = 298.75) {
}
for (i = [0 : SPOKE_COUNT * 2]) {
rotate([0, 0, (i + 0.5) * (360 / (SPOKE_COUNT * 2)) ]) {
translate([(258 / 2) - (spoke_2_len / 2) + 1 , 0, -3.6]) triangle_void_2();
translate([(258 / 2) - (spoke_2_len / 2) + 1 , 0, -3.6 ]) triangle_void_2(i);
}
}
for (i = [0 : SPOKE_COUNT * 4]) {
rotate([0, 0, (i + 0.5) * (360 / (SPOKE_COUNT * 4)) ]) {
if (i % 2 == 0) {
translate([(outer_d / 2) - (spoke_3_len / 2) + 1 , 0.3, -3.6]) triangle_void_3();
translate([(outer_d / 2) - (spoke_3_len / 2) + 1 , 0.3, -3.6]) triangle_void_3(i);
} else {
translate([(outer_d / 2) - (spoke_3_len / 2) + 1, -0.3, -3.6]) triangle_void_3();
translate([(outer_d / 2) - (spoke_3_len / 2) + 1 , -0.3, -3.6]) triangle_void_3(i);
}
}
}
@ -230,13 +229,13 @@ module gnal_100ft_top () {
}
}
module film_guide (rotations = 60, id = 45.55, spacing = 2.075) {
$fn = 200;
spiral(rotations, id, spacing, $fn);
}
PART="spiral";
if (PART == "spiral") {
gnal_100ft_spiral();
} else if (PART == "top") {

View File

@ -381,7 +381,7 @@ module triangle_void () {
}
module triangle_void_2 (i) {
length = 43 - 8 + 10;
length = 43 - 8 + 12;
width = 12;
height = 4.5 + 2.7;
ANGLE_A = 34.8;
@ -401,22 +401,29 @@ module triangle_void_2 (i) {
} else {
translate([-(length / 2) - 7, 0, 0]) rotate([0, 0, ANGLE_C]) cube([10, width * 2, height + 1], center = true);
}
translate([(length / 2) + 1, 0, 0]) rotate([0, 0, -ANGLE_C]) cube([10, width * 2, height + 1], center = true);;
}
}
module triangle_void_3 () {
length = 32;
module triangle_void_3 (i) {
length = 32 + 10;
width = 10;
height = 4.5 + 2.7;
ANGLE_A = 31;
ANGLE_B = 45 / SPOKE_COUNT;
ANGLE_C = 20;
angle_w = 7.8;
difference () {
translate([-1, 0, 0]) cube([length, width, height], center = true);
translate([-3, 0, 0]) cube([length, width, height], center = true);
translate([0, angle_w, 0]) rotate([0, 0, ANGLE_B]) cube([length *2, width, height * 10], center = true);
translate([0, -angle_w, 0]) rotate([0, 0, -ANGLE_B]) cube([length *2, width, height * 10], center = true);
translate([0, angle_w, -.7]) rotate([ANGLE_A, 0, 0]) cube([length *2, width, height * 10], center = true);
translate([0, -angle_w, -.7]) rotate([-ANGLE_A, 0, 0]) cube([length *2, width, height * 10], center = true);
if (i % 2 == 0) {
translate([-(length / 2) - 7, 0, 0]) rotate([0, 0, -ANGLE_C]) cube([10, width * 2, height + 1], center = true);
} else {
translate([-(length / 2) - 5, 0, 0]) rotate([0, 0, -ANGLE_C]) cube([10, width * 2, height + 1], center = true);
}
}
}

View File

@ -32,7 +32,12 @@ do
png="${IMG}/gnal_${SIZE}_${V}_${FILE}.png"
echo "${scad} - ${FILE}"
start=`date +%s`
openscad -o "$stl" -D "PART=\"${FILE}\"" "${scad}"
if [ "${SIZE}" -eq "100ft"]; then
openscad -o "$stl" -D "PART=\"${FILE}\"" -D "FN=800" "${scad}"
else
openscad -o "$stl" -D "PART=\"${FILE}\"" -D "FN=600" "${scad}"
fi
end=`date +%s`
runtime=$((end-start))
hash=`sha256sum "$stl" | awk '{ print $1 }'`