List: discuss@lists.openscad.org
From: runsun
Re: [OpenSCAD] Coating a sphere with bumps (golf-ball-ish) for wheel treads
Mon, May 28, 2018 3:25 PM
[npts, fcs]
: spherePF(r=r,n=n-1,_pts=npts,_fcs=fcs)
)
: let(
spts = concat(_pts
, [ each for (f=_fcs)
[(_pts[f[0]]+_pts[f[1]])
,(_pts[f[1]]+_pts[f[2]])
,(_pts[f[2]]+_pts[f[0]])
]
]
)