Example #1
0
        private Node PointEvent(SweepContext tcx, TriPoint point)
        {
            Node node     = tcx.LocateNode(point);
            Node new_node = NewFrontTriangle(tcx, point, node);

            // Only need to check +epsilon since point never have smaller
            // x value than node due to how we fetch nodes from the front
            if (point.X <= node.Point.X + TriUtil.EPSILON)
            {
                Fill(tcx, node);
            }

            //tcx.AddNode(new_node);

            FillAdvancingFront(tcx, new_node);
            return(new_node);
        }