static WingedEdge FindNextEdgeInHole(WingedEdge wing, int common) { WingedEdge next = wing.GetAdjacentEdgeWithCommonIndex(common); int counter = 0; while (next != null && next != wing && counter++ < k_MaxHoleIterations) { if (next.opposite == null) { return(next); } next = next.opposite.GetAdjacentEdgeWithCommonIndex(common); } return(null); }