1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-20 22:21:52 +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]
];
module caterpillar(levels, px_width) {
module shadow(levels, px_width) {
dots = px_gray(levels, center = true);
difference() {
square(len(levels), center = true);
@ -120,9 +120,9 @@ module caterpillar(levels, px_width) {
}
stereographic_extrude(shadow_side_leng = len(levels), $fn = 48)
caterpillar(levels, px_width);
shadow(levels, px_width);
if($preview) {
color("gray")
caterpillar(levels, px_width);
shadow(levels, px_width);
}