BOSL2/examples/cubic_sphere_packing.scad
2020-03-28 20:51:06 -07:00

14 lines
257 B
OpenSCAD

include <BOSL2/std.scad>
include <BOSL2/beziers.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);
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap