Check the boundary corner condition outside of the function that calculates it, and only check zero normals when calculating them here.
Check the boundary corner condition outside of the function that calculates it, and only check zero normals when calculating them here.