private static void FinalizationPolygon(DTSweepContext tcx) { DelaunayTriangle delaunayTriangle = tcx.aFront.Head.Next.Triangle; TriangulationPoint point = tcx.aFront.Head.Next.Point; while (!delaunayTriangle.GetConstrainedEdgeCW(point)) { delaunayTriangle = delaunayTriangle.NeighborCCW(point); } tcx.MeshClean(delaunayTriangle); }
private static void FinalizationPolygon(DTSweepContext tcx) { // Get an Internal triangle to start with DelaunayTriangle t = tcx.aFront.Head.Next.Triangle; TriangulationPoint p = tcx.aFront.Head.Next.Point; while (!t.GetConstrainedEdgeCW(p)) { t = t.NeighborCCW(p); } // Collect interior triangles constrained by edges tcx.MeshClean(t); }