Пример #1
0
 /// <summary>
 /// Try to map a node to all sides of this triangle that don't have
 /// a neighbor.
 /// </summary>
 public void MapTriangleToNodes(DelaunayTriangle t)
 {
     for (int i = 0; i < 3; i++)
     {
         if (t.Neighbors[i] == null)
         {
             AdvancingFrontNode n = Front.LocatePoint(t.PointCWFrom(t.Points[i]));
             if (n != null)
             {
                 n.Triangle = t;
             }
         }
     }
 }
Пример #2
0
 public void MapTriangleToNodes(Triangle t)
 {
     for (int i = 0; i < 3; i++)
     {
         if (t.GetNeighbor(i) == null)
         {
             Node n = Front.LocatePoint(t.PointCW(t.Points[i]));
             if (n != null)
             {
                 n.Triangle = t;
             }
         }
     }
 }