Healed marching cubes algorithm for non-manifold implicit surfaces