Turn the density grid into a smooth mesh with marching cubes, from a case table the code works out from the cube itself, so that neighboring cubes always close.