BOSL2/examples/cubic_sphere_packing.scad

14 lines
235 B
OpenSCAD
Raw Normal View History

2020-03-29 03:51:06 +00:00
include <BOSL2/std.scad>
//$fa=2;
//$fs=2;
s = 20;
s2 = s * sin(45);
zcopies(s2,n=8) union()
grid2d([s2,s2],n=8,stagger=($idx%2)? true : "alt")
sphere(d=s);
2020-03-29 03:51:06 +00:00
// vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap