Fixed a bug in which SurfaceEdges[] sometimes contains duplicate edges.