



AtomicArmy






Zein


iam717
fn voxel_sphere radius segs = ( size = 2 * radius/segs; for h = 1 to segs do -- height (z) for w = 1 to segs do -- width (x) for l = 1 to segs do -- length (y) ( -- compute the grid point pos = [-radius + ((w - 1) * size), -radius + ((l - 1) * size), -radius + ((h - 1) * size)]; -- in sphere test (also a culling spherical test to stop max chugging like puffing billy) if (length pos) < radius and (length pos) >= radius - size then ( box width:size length:size height:size pos:(pos + [0,0,-size * 0.5]) wirecolor:blue; ) ) ) delete geometry voxel_sphere 10.0 30

Klunk

kosh3d