예제 #1
0
        /// <summary>
        /// Start sweeping the Y-sorted point set from bottom to top
        /// </summary>
        private static void Sweep(DTSweepContext tcx)
        {
            List <TriangulationPoint> points = tcx.Points;

            for (int i = 1; i < points.Count; i++)
            {
                TriangulationPoint point = points[i];

                AdvancingFrontNode node = PointEvent(tcx, point);

                if (point.HasEdges)
                {
                    foreach (DTSweepConstraint e in point.Edges)
                    {
                        EdgeEvent(tcx, e, node);
                    }
                }
                tcx.Update(null);
            }
        }
예제 #2
0
        /// <summary>
        /// Start sweeping the Y-sorted point set from bottom to top
        /// </summary>
        private static void Sweep(DTSweepContext tcx)
        {
            var points = tcx.Points;

            for (var i = 1; i < points.Count; i++)
            {
                var point = points[i];

                var node = PointEvent(tcx, point);

                if (point.HasEdges)
                {
                    foreach (var e in point.Edges)
                    {
                        EdgeEvent(tcx, e, node);
                    }
                }
                tcx.Update(null);
            }
        }