1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-05 14:27:45 +02:00
This commit is contained in:
Justin Lin
2019-08-26 20:35:07 +08:00
parent a226e0a625
commit a900d5bf3b

View File

@@ -106,7 +106,7 @@ levels = [
[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255] [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]
]; ];
module caterpillar(levels, px_width) { module shadow(levels, px_width) {
dots = px_gray(levels, center = true); dots = px_gray(levels, center = true);
difference() { difference() {
square(len(levels), center = true); square(len(levels), center = true);
@@ -120,9 +120,9 @@ module caterpillar(levels, px_width) {
} }
stereographic_extrude(shadow_side_leng = len(levels), $fn = 48) stereographic_extrude(shadow_side_leng = len(levels), $fn = 48)
caterpillar(levels, px_width); shadow(levels, px_width);
if($preview) { if($preview) {
color("gray") color("gray")
caterpillar(levels, px_width); shadow(levels, px_width);
} }