public virtual void Prepare(TriangulationContext tcx)
 {
     if (Triangles == null)
     {
         Triangles = new List <DelaunayTriangle>(Points.Count);
     }
     else
     {
         Triangles.Clear();
     }
     tcx.Points.AddRange(Points);
 }
        public override void Prepare(TriangulationContext tcx)
        {
            if (!Initialize())
            {
                return;
            }

            base.Prepare(tcx);

            Dictionary <uint, TriangulationConstraint> .Enumerator it = mConstraintMap.GetEnumerator();
            while (it.MoveNext())
            {
                TriangulationConstraint tc = it.Current.Value;
                tcx.NewConstraint(tc.P, tc.Q);
            }
        }
 public TriangulationDebugContext(TriangulationContext tcx)
 {
     _tcx = tcx;
 }