Example #1
0
 /// <summary>
 /// Check a triangle's deallocation.
 /// </summary>
 internal static bool IsDead(Triangle tria)
 {
     return(tria.neighbors[0].tri == null);
 }
Example #2
0
 /// <summary>
 /// Set a triangle's deallocation.
 /// </summary>
 internal static void Kill(Triangle tri)
 {
     tri.neighbors[0].tri = null;
     tri.neighbors[2].tri = null;
 }
Example #3
0
 /// <summary>
 /// Dissolve a bond (from one side).
 /// </summary>
 /// <remarks>Note that the other triangle will still think it's connected to
 /// this triangle. Usually, however, the other triangle is being deleted
 /// entirely, or bonded to another triangle, so it doesn't matter.
 /// </remarks>
 internal void Dissolve(Triangle dummy)
 {
     tri.neighbors[orient].tri    = dummy;
     tri.neighbors[orient].orient = 0;
 }