From 02fac4ea5c13b092fabc45d17602af40135f6b1b Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 18 Feb 2020 15:03:01 +0800 Subject: [PATCH] refactor --- examples/photo_sphere.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/photo_sphere.scad b/examples/photo_sphere.scad index b51e6fd4..3b439d8c 100644 --- a/examples/photo_sphere.scad +++ b/examples/photo_sphere.scad @@ -110,14 +110,14 @@ dots = px_gray(levels, center = true, normalize = true); color("white") for(dot = dots) { - translate(tf_sphere(photo_size, dot[0] + [50, 50], 50, [180, 180])) + translate(tf_sphere(photo_size, dot[0] + photo_size / 2, 50, [180, 180])) square(dot[1] * 2.5); } rotate([180, 0, 0]) color("white") for(dot = dots) { - translate(tf_sphere(photo_size, dot[0] + [50, 50], 50, [180, 180])) + translate(tf_sphere(photo_size, dot[0] + photo_size / 2, 50, [180, 180])) square(dot[1] * 2.5); }