Mesh fix for non manifold mesh

How did you create the mesh?