From 11f9a5b58a3c2bcb1b3b2fab58a194fb177f0fcf Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 22 Jul 2022 10:38:21 +0800 Subject: [PATCH] add demo --- src/experimental/arc_great_circle.scad | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/experimental/arc_great_circle.scad b/src/experimental/arc_great_circle.scad index 2e8ace44..84628df9 100644 --- a/src/experimental/arc_great_circle.scad +++ b/src/experimental/arc_great_circle.scad @@ -44,4 +44,43 @@ for(cell = vrn_sphere(points)) { sphere(.5, $fn = 4); } } +*/ + +/* +use +use +use + +use +use + +n = 8; +radius = 20; + +points = fibonacci_lattice(n, radius); +#for(p = points) { + translate(p) + sphere(1); +} + +%sphere(radius); + +shape = shape_circle(1.5, $fn = 36); + +for(cell = vrn_sphere(points)) { + color("green") + for(p = cell) { + translate(p) + sphere(3, $fn = 48); + } + pts = concat(cell, [cell[0]]); + + + for(i = [0:len(pts) - 2]) { + p1 = pts[i]; + p2 = pts[i + 1]; + arc = arc_great_circle(pts[i], pts[i + 1], $fn = 96); + path_extrude(shape, arc); + } +} */ \ No newline at end of file