Exemplo n.º 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;
             }
         }
     }
 }
Exemplo n.º 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;
             }
         }
     }
 }