So I'm trying to draw a sphere out of discrete "blocks." I need this to be done with integers. I'm trying to shy away from trig functions because of that. Bresenham's circle algorithm is the only thing that seems reasonable to me at this point, but I can't think of a way to make it work in 3 dimensions.
I also want this to work for ellipsoids too.
Also, out of curiosity, I was wondering, how could this algorithm work in N dimensions? There obviously isn't any practical use for this (at least that I can think of) but I'm curious anyway.