/// <summary> /// Check a triangle's deallocation. /// </summary> internal static bool IsDead(Triangle tria) { return(tria.neighbors[0].tri == null); }
/// <summary> /// Set a triangle's deallocation. /// </summary> internal static void Kill(Triangle tri) { tri.neighbors[0].tri = null; tri.neighbors[2].tri = null; }
/// <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; }